summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2014-02-17 11:42:16 +0000
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2014-02-17 11:42:16 +0000
commit1e098d3aa8e302b246a8220376d4b70eaca05ba2 (patch)
treeb1f124f00a4d712202c67ddcb1ee0992f94a0bab /sys-kernel/dracut/files
parentUpdate ChangeLog to indicate that bug 499618 was fixed (diff)
downloadhistorical-1e098d3aa8e302b246a8220376d4b70eaca05ba2.tar.gz
historical-1e098d3aa8e302b246a8220376d4b70eaca05ba2.tar.bz2
historical-1e098d3aa8e302b246a8220376d4b70eaca05ba2.zip
Fixed problem with root= boot parameter being ignored by dracut in hostonly
mode. Rels comment #40 of bug #498832. Commit on behalf of Alexander Tsoy <alexander@tsoy.me>. Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0xF0134531E1DBFAB5
Diffstat (limited to 'sys-kernel/dracut/files')
-rw-r--r--sys-kernel/dracut/files/036-0006-dracut.sh-Fix-variable-name-typo.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/sys-kernel/dracut/files/036-0006-dracut.sh-Fix-variable-name-typo.patch b/sys-kernel/dracut/files/036-0006-dracut.sh-Fix-variable-name-typo.patch
new file mode 100644
index 000000000000..c0b6301ddf55
--- /dev/null
+++ b/sys-kernel/dracut/files/036-0006-dracut.sh-Fix-variable-name-typo.patch
@@ -0,0 +1,33 @@
+From 9e01e3d9c8f89b1ef98053a64bde9beed9714029 Mon Sep 17 00:00:00 2001
+From: Colin Guthrie <colin@mageia.org>
+Date: Wed, 5 Feb 2014 10:06:51 +0000
+Subject: [PATCH 6/6] 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.
+---
+ dracut.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/dracut.sh b/dracut.sh
+index 08335d0..d693d58 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
+
+--
+1.8.5.5
+