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

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