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