From: Colin Guthrie Date: Wed, 5 Feb 2014 10:06:51 +0000 (+0000) Subject: dracut.sh: Fix variable name typo. X-Git-Tag: 037~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8da51857f0ac94004305f51de9f72a04679a5616;p=thirdparty%2Fdracut.git dracut.sh: Fix variable name typo. This caused the root_dev variable not to be set which in turn meant that the root device was not whitelisted in 99base/module-setup.sh when injecting compile-time devexists hooks in hostonly initrds. This ties the generated initrd to the root fs device (typically the UUID) rather than relying solely only the root= kernel command line. While it is hostonly, not hardcoding e.g. UUIDs is still desirable. Any swap partition on the host device is still added however. --- diff --git a/dracut.sh b/dracut.sh index ccff358ad..5267af5eb 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1005,7 +1005,7 @@ if [[ $hostonly ]]; then _bdev=$(readlink -f "/dev/block/$_dev") [[ -b $_bdev ]] && _dev=$_bdev push host_devs $_dev - [[ "$_mp" == "/" ]] && root_dev="$_dev" + [[ "$mp" == "/" ]] && root_dev="$_dev" push host_devs "$_dev" done