diff options
author | Harald Hoyer <harald@redhat.com> | 2013-07-17 12:03:01 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-07-17 12:03:01 +0200 |
commit | 5a6a98f875abb186c94171bc672259a28fddb560 (patch) | |
tree | fa6270258d5f028eb510ccd1697c863e389d03e6 /dracut.sh | |
parent | 35857f556ce9150f37a194e5c9f840212eef0870 (diff) | |
download | dracut-5a6a98f875abb186c94171bc672259a28fddb560.tar.gz dracut-5a6a98f875abb186c94171bc672259a28fddb560.tar.bz2 dracut-5a6a98f875abb186c94171bc672259a28fddb560.zip |
do not wait_for_dev for the root device
it's specified on the kernel command line
Diffstat (limited to 'dracut.sh')
-rwxr-xr-x | dracut.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 \ |