Shawn Dunn
b523995f47
- More empty commandline fixes * Add: 0074-More-empty-cmdline-fixes.patch - 95dasd_rules: enable parsing of rd.dasd= commandline parameter * Add: 0075-95dasd_rules-enable-parsing-of-rd.dasd-commandline-p.patch - Correctly set cio_ignore for dynamic s390 rules * Add: 0076-Correctly-set-cio_ignore-for-dynamic-s390-rules.patch - 90multipath: add missing 11-dm-mpath.rules file (bnc#883149) * Add: 0077-90multipath-add-missing-11-dm-mpath.rules-file.patch - Restore original IFS value (bnc#883770) * Add: 0078-Restore-original-IFS-value.patch - Fix non-export of journal dev boot options * Add: 0071-Fix-non-export-of-journal-dev-boot-options.patch - Also export root= boot param for hostonly-cmdline * Add: 0072-Also-export-root-boot-param-for-hostonly-cmdline-cas.patch - Don't create lots of empty cmdline files * Add: 0073-Don-t-create-lots-of-empty-cmdline-files-for-hostonl.patch OBS-URL: https://build.opensuse.org/request/show/238369 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=164
51 lines
1.6 KiB
Diff
51 lines
1.6 KiB
Diff
From df582ab4c05fc417ce9b6b8a8bed4e259041013b Mon Sep 17 00:00:00 2001
|
|
From: Thorsten Behrens <tbehrens@suse.com>
|
|
Date: Wed, 18 Jun 2014 02:00:28 +0200
|
|
Subject: Also export root= boot param for hostonly-cmdline case.
|
|
|
|
If there's a root fallback, at least attempt to have it falling
|
|
back to the last root filesystem this system ran off of.
|
|
|
|
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
|
|
---
|
|
modules.d/95rootfs-block/module-setup.sh | 10 ++++++++--
|
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/modules.d/95rootfs-block/module-setup.sh b/modules.d/95rootfs-block/module-setup.sh
|
|
index 5f1b826..b868d0b 100755
|
|
--- a/modules.d/95rootfs-block/module-setup.sh
|
|
+++ b/modules.d/95rootfs-block/module-setup.sh
|
|
@@ -31,14 +31,18 @@ cmdline_journal() {
|
|
return 0
|
|
}
|
|
|
|
-# called by dracut
|
|
-cmdline() {
|
|
+cmdline_rootfs() {
|
|
local dev=/dev/block/$(find_root_block_device)
|
|
if [ -e $dev ]; then
|
|
printf " root=%s" "$(shorten_persistent_dev "$(get_persistent_dev "$dev")")"
|
|
printf " rootflags=%s" "$(find_mp_fsopts /)"
|
|
printf " rootfstype=%s" "$(find_mp_fstype /)"
|
|
fi
|
|
+}
|
|
+
|
|
+# called by dracut
|
|
+cmdline() {
|
|
+ cmdline_rootfs
|
|
cmdline_journal
|
|
}
|
|
|
|
@@ -47,6 +51,8 @@ install() {
|
|
if [[ $hostonly_cmdline == "yes" ]]; then
|
|
local _journaldev=$(cmdline_journal)
|
|
[[ $_journaldev ]] && printf "%s\n" "$_journaldev" >> "${initdir}/etc/cmdline.d/95root-journaldev.conf"
|
|
+ local _rootdev=$(cmdline_rootfs)
|
|
+ [[ $_rootdev ]] && printf "%s\n" "$_rootdev" >> "${initdir}/etc/cmdline.d/95root-dev.conf"
|
|
fi
|
|
|
|
inst_multiple umount
|
|
--
|
|
1.8.4.5
|
|
|