mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
initrd: helper to load the SATA modules and mount a partition
This commit is contained in:
parent
4d4be41d3f
commit
0d9a1e5038
14
initrd/bin/mount-sata
Executable file
14
initrd/bin/mount-sata
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
# Setup the devices for SATA
|
||||
. /etc/functions
|
||||
|
||||
for mod in libata libahci ahci; do
|
||||
if ! lsmod | grep -q "^$mod " ; then
|
||||
insmod "/lib/modules/$mod.ko" \
|
||||
|| die "$mod: Unable to load module"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
exec mount "$@"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user