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
81 lines
3.0 KiB
Diff
81 lines
3.0 KiB
Diff
From c323ff844931d7b9d171d3c11f8c3152c346a62a Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Wed, 18 Jun 2014 09:59:22 +0200
|
|
Subject: More empty cmdline fixes
|
|
|
|
This fixes up some more modules which might print out empty
|
|
commandline files.
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
---
|
|
modules.d/81cio_ignore/module-setup.sh | 5 +++--
|
|
modules.d/95fcoe/module-setup.sh | 4 ++--
|
|
modules.d/95iscsi/module-setup.sh | 13 +++++++------
|
|
3 files changed, 12 insertions(+), 10 deletions(-)
|
|
|
|
diff --git a/modules.d/81cio_ignore/module-setup.sh b/modules.d/81cio_ignore/module-setup.sh
|
|
index 42ae2f9..37b414b 100644
|
|
--- a/modules.d/81cio_ignore/module-setup.sh
|
|
+++ b/modules.d/81cio_ignore/module-setup.sh
|
|
@@ -30,8 +30,9 @@ cmdline() {
|
|
|
|
# called by dracut
|
|
install() {
|
|
- if [[ $hostonly_cmdline == "yes" ]];then
|
|
- cmdline >> "${initdir}/etc/cmdline.d/01cio_accept.conf"
|
|
+ if [[ $hostonly_cmdline == "yes" ]] ; then
|
|
+ local _cio_accept=$(cmdline)
|
|
+ [[ $_cio_accept ]] && printf "%s\n" "$_cio_accept" >> "${initdir}/etc/cmdline.d/01cio_accept.conf"
|
|
fi
|
|
|
|
inst_hook cmdline 20 "$moddir/parse-cio_accept.sh"
|
|
diff --git a/modules.d/95fcoe/module-setup.sh b/modules.d/95fcoe/module-setup.sh
|
|
index 57d5c1e..9ca4c67 100755
|
|
--- a/modules.d/95fcoe/module-setup.sh
|
|
+++ b/modules.d/95fcoe/module-setup.sh
|
|
@@ -74,8 +74,8 @@ install() {
|
|
mkdir -m 0755 -p "$initdir/var/lib/lldpad"
|
|
|
|
if [[ $hostonly_cmdline == "yes" ]] ; then
|
|
- cmdline >> "${initdir}/etc/cmdline.d/95fcoe.conf"
|
|
- echo >> "${initdir}/etc/cmdline.d/95fcoe.conf"
|
|
+ local _fcoeconf=$(cmdline)
|
|
+ [[ $_fcoeconf ]] && printf "%s\n" "$_fcoeconf" >> "${initdir}/etc/cmdline.d/95fcoe.conf"
|
|
fi
|
|
inst "$moddir/fcoe-up.sh" "/sbin/fcoe-up"
|
|
inst "$moddir/fcoe-edd.sh" "/sbin/fcoe-edd"
|
|
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
|
|
index e94e913..b90e298 100755
|
|
--- a/modules.d/95iscsi/module-setup.sh
|
|
+++ b/modules.d/95iscsi/module-setup.sh
|
|
@@ -78,12 +78,6 @@ depends() {
|
|
installkernel() {
|
|
local _arch=$(uname -m)
|
|
|
|
- # Detect iBFT and perform mandatory steps
|
|
- if [[ $hostonly_cmdline == "yes" ]] ; then
|
|
- install_ibft > "${initdir}/etc/cmdline.d/95iscsi.conf"
|
|
- echo >> "${initdir}/etc/cmdline.d/95iscsi.conf"
|
|
- fi
|
|
-
|
|
instmods bnx2i qla4xxx cxgb3i cxgb4i be2iscsi
|
|
hostonly="" instmods iscsi_tcp iscsi_ibft crc32c iscsi_boot_sysfs
|
|
iscsi_module_filter() {
|
|
@@ -133,6 +127,13 @@ install() {
|
|
inst_multiple umount iscsistart hostname iscsi-iname
|
|
inst_multiple -o iscsiuio
|
|
inst_libdir_file 'libgcc_s.so*'
|
|
+
|
|
+ # Detect iBFT and perform mandatory steps
|
|
+ if [[ $hostonly_cmdline == "yes" ]] ; then
|
|
+ local _ibftconf=$(install_ibft)
|
|
+ [[ $_ibftconf ]] && printf "%s\n" "$_ibftconf" >> "${initdir}/etc/cmdline.d/95iscsi.conf"
|
|
+ fi
|
|
+
|
|
inst_hook cmdline 90 "$moddir/parse-iscsiroot.sh"
|
|
inst_hook cleanup 90 "$moddir/cleanup-iscsi.sh"
|
|
inst "$moddir/iscsiroot.sh" "/sbin/iscsiroot"
|
|
--
|
|
1.8.4.5
|
|
|