From: Harald Hoyer Date: Wed, 17 Jul 2013 10:03:01 +0000 (+0200) Subject: do not wait_for_dev for the root device X-Git-Tag: 030~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a6a98f875abb186c94171bc672259a28fddb560;p=thirdparty%2Fdracut.git do not wait_for_dev for the root device it's specified on the kernel command line --- diff --git a/dracut.sh b/dracut.sh index 6bc47fae7..477a85a4f 100755 --- a/dracut.sh +++ b/dracut.sh @@ -862,7 +862,9 @@ if [[ $hostonly ]]; then "/boot"; do mountpoint "$mp" >/dev/null 2>&1 || continue - push host_devs "$(readlink -f "/dev/block/$(find_block_device "$mp")")" + _dev="$(readlink -f "/dev/block/$(find_block_device "$mp")")" + [[ "$_mp" == "/" ]] && root_dev="$_dev" + push host_devs "$_dev" done while read dev type rest; do @@ -945,7 +947,7 @@ fi export initdir dracutbasedir dracutmodules \ fw_dir drivers_dir debug no_kernel kernel_only \ - omit_drivers mdadmconf lvmconf \ + omit_drivers mdadmconf lvmconf root_dev \ use_fstab fstab_lines libdirs fscks nofscks ro_mnt \ stdloglvl sysloglvl fileloglvl kmsgloglvl logfile \ debug host_fs_types host_devs sshkey add_fstab \