From 6930a24c8eb46b837e7743d7896feb29aa806466 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 29 Jul 2008 09:35:44 +0000 Subject: [PATCH] early: Enhanced early's init to modprobe rootfs's filesystem module --- target/early/initramfs/init.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/early/initramfs/init.sh b/target/early/initramfs/init.sh index c6f9460..38441d0 100644 --- a/target/early/initramfs/init.sh +++ b/target/early/initramfs/init.sh @@ -101,7 +101,7 @@ if [ ! -e "$root" ]; then if [ "$want_mdadm" != no -a -s /etc/mdadm.conf ]; then # try activating software raids title "Activating RAID devices" - modprobe -q md-mod + modprobe -q md-mod 2> /dev/null udevsettle check mdadm -As --auto=yes status @@ -117,7 +117,7 @@ if [ ! -e "$root" ]; then if [ "$want_lvm" != no -a -d /etc/lvm/archive ]; then title "Activating LVM devices" - modprobe -q dm_mod + modprobe -q dm_mod 2> /dev/null udevsettle check lvm vgchange -ay status @@ -136,6 +136,7 @@ if [ -n "$root" ]; then rm /tmp/$$.vol_id title "Mounting $root (${ID_FS_TYPE:-unknown}) " + [ -z "$ID_FS_TYPE" ] || modprobe -q "$ID_FS_TYPE" 2> /dev/null check mount ${ID_FS_TYPE:+-t $ID_FS_TYPE} ${mode:+-o $mode} "$root" /rootfs status else