bb76751d8a
- Rediff patches to match git repository - 95fcoe: Check for FCoE devices prior to binaries * Modify 0055-95fcoe-Only-install-fcoe-module-if-required.patch - 99base: Install chown instead of chgrp * Modify 0052-99base-Add-chown-binary.patch - 95iscsi: do not try to detect iSCSI firmware during booting; should be handled via commandline parameter * Modify 0030-95iscsi-Autodetect-iSCSI-firmware.patch - Rename patch: * old: 0051-mkinitrd-suse-add-update-booloader-message.patch new: 0051-mkinitrd-suse-add-update-bootloader-message.patch OBS-URL: https://build.opensuse.org/request/show/236229 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=157
53 lines
1.8 KiB
Diff
53 lines
1.8 KiB
Diff
From 410700b1b3a4c0e6c092ce453d1f7ca5aaa8c6af Mon Sep 17 00:00:00 2001
|
|
From: Thomas Renninger <trenn@suse.de>
|
|
Date: Mon, 5 May 2014 08:38:44 +0200
|
|
Subject: [PATCH] mkinitrd-suse.sh: Use '--hostonly' and '--hostonly-cmdline'
|
|
correctly
|
|
|
|
LVM and other systems might not be working properly as the
|
|
--hostonly-cmdline flag has to be active by default.
|
|
|
|
References: bnc#874000,bnc#874905,bnc#874363
|
|
|
|
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
|
---
|
|
mkinitrd-suse.8.asc | 4 +++-
|
|
mkinitrd-suse.sh | 6 +++++-
|
|
2 files changed, 8 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/mkinitrd-suse.8.asc b/mkinitrd-suse.8.asc
|
|
index 9eb8fc9..a181b75 100644
|
|
--- a/mkinitrd-suse.8.asc
|
|
+++ b/mkinitrd-suse.8.asc
|
|
@@ -76,7 +76,9 @@ OPTIONS
|
|
|
|
**-A**::
|
|
Create a so called "monster initrd" which includes all available
|
|
- features and modules.
|
|
+ features and modules. This calls dracut with --no-hostonly and
|
|
+ --no-hostonly-cmdline parameters internally, instead of the default
|
|
+ --hostonly and --hostonly-cmdline.
|
|
|
|
**-v, --verbose**::
|
|
increase verbosity level
|
|
diff --git a/mkinitrd-suse.sh b/mkinitrd-suse.sh
|
|
index 1c2634f..c02062d 100755
|
|
--- a/mkinitrd-suse.sh
|
|
+++ b/mkinitrd-suse.sh
|
|
@@ -297,7 +297,11 @@ targets=( $targets )
|
|
[[ $kernels ]] && kernels=( $kernels )
|
|
|
|
[[ $logfile ]] && dracut_args="${dracut_args} --logfile $logfile"
|
|
-[[ $host_only == 1 ]] && dracut_args="${dracut_args} --hostonly"
|
|
+if [[ $host_only == 1 ]];then
|
|
+ dracut_args="${dracut_args} --hostonly --hostonly-cmdline"
|
|
+else
|
|
+ dracut_args="${dracut_args} --no-hostonly --no-hostonly-cmdline"
|
|
+fi
|
|
[[ $force == 1 ]] && dracut_args="${dracut_args} --force"
|
|
[[ $dracut_cmdline ]] && dracut_args="${dracut_args} --kernel-cmdline ${dracut_cmdline}"
|
|
[ -z "$(type -p update-bootloader)" ] && skip_update_bootloader=1
|
|
--
|
|
1.8.4.5
|
|
|