From: Victor Lowther Date: Fri, 13 Feb 2009 12:42:33 +0000 (-0800) Subject: [PATCH 26/50] Make init less noisy and load fs modules for all mounted filesystems X-Git-Tag: 0.1~452 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc6b0dec9e077468d45ae3248eb196c92a9e7b31;p=thirdparty%2Fdracut.git [PATCH 26/50] Make init less noisy and load fs modules for all mounted filesystems --- diff --git a/dracut b/dracut index c444c92d9..eb6632dca 100755 --- a/dracut +++ b/dracut @@ -115,6 +115,11 @@ for d in etc proc sys sysroot dev/pts; do mkdir -p "$initdir/$d"; done instmods $modules +# Grab modules for all filesystem types we currently know about +while read d mp t rest; do + instmods "$t" +done /dev/null 2>&1 # mount the rootfs NEWROOT="/sysroot" @@ -59,7 +60,7 @@ NEWROOT="/sysroot" # it'd be nice if we had a udev rule that just did all of the bits for # figuring out what the specified root is and linking it /dev/root root=$(getarg 'root=*'); root=${root#root=} -echo -n "Going to mount rootfs ($root)" +plymouth --update "Going to mount rootfs ($root)" case $root in LABEL=*) root=${root#LABEL=} root=${root//\//\\x2f} @@ -71,12 +72,12 @@ esac # should we have a timeout? tries=0 +plymouth --update "Waiting up to 30 seconds for $root to become available" until [[ -e $root ]]; do - echo -n "." sleep 1 ((tries++ > 30)) && emergency_shell done -echo -e "\n\nMounting rootfs after $tries seconds" +plymouth --update "Mounting rootfs after $tries seconds" ln -s "$root" /dev/root mount -o ro /dev/root $NEWROOT || emergency_shell