Blame SOURCES/0123-dracut.sh-Fix-variable-name-typo.patch

a56a5e
From 361eaeaf073d4d6f778d54ca4060f6b880e265f2 Mon Sep 17 00:00:00 2001
966cef
From: Colin Guthrie <colin@mageia.org>
966cef
Date: Wed, 5 Feb 2014 10:06:51 +0000
966cef
Subject: [PATCH] dracut.sh: Fix variable name typo.
966cef
966cef
This caused the root_dev variable not to be set which in turn meant that
966cef
the root device was not whitelisted in 99base/module-setup.sh when injecting
966cef
compile-time devexists hooks in hostonly initrds. This ties the generated
966cef
initrd to the root fs device (typically the UUID) rather than relying solely
966cef
only the root= kernel command line.
966cef
966cef
While it is hostonly, not hardcoding e.g. UUIDs is still desirable. Any
966cef
swap partition on the host device is still added however.
966cef
---
966cef
 dracut.sh | 2 +-
966cef
 1 file changed, 1 insertion(+), 1 deletion(-)
966cef
966cef
diff --git a/dracut.sh b/dracut.sh
1755ca
index 4e239936..89df9cd8 100755
966cef
--- a/dracut.sh
966cef
+++ b/dracut.sh
966cef
@@ -926,7 +926,7 @@ if [[ $hostonly ]]; then
966cef
         _bdev=$(readlink -f "/dev/block/$_dev")
966cef
         [[ -b $_bdev ]] && _dev=$_bdev
966cef
         push host_devs $_dev
966cef
-        [[ "$_mp" == "/" ]] && root_dev="$_dev"
966cef
+        [[ "$mp" == "/" ]] && root_dev="$_dev"
966cef
         push host_devs "$_dev"
966cef
     done
966cef