|
|
d4a4eb |
From e671c3a06a7e58461d4e9c9f3546cf6eac809300 Mon Sep 17 00:00:00 2001
|
|
|
d4a4eb |
From: Harald Hoyer <harald@redhat.com>
|
|
|
d4a4eb |
Date: Tue, 4 Dec 2018 10:27:17 +0100
|
|
|
d4a4eb |
Subject: [PATCH] 95iscsi/module-setup.sh: do not require 'hostname' anymore
|
|
|
d4a4eb |
|
|
|
d4a4eb |
(cherry picked from commit ebe1821635dd99f07c817179ee5358d27aab53c5)
|
|
|
d4a4eb |
|
|
|
d4a4eb |
[lkundrak@v3.sk: fixes TEST-30 that fails with: dracut: dracut module
|
|
|
d4a4eb |
'iscsi' will not be installed, because command 'hostname' could not be
|
|
|
d4a4eb |
found!]
|
|
|
d4a4eb |
---
|
|
|
d4a4eb |
modules.d/40network/netroot.sh | 2 +-
|
|
|
d4a4eb |
modules.d/95iscsi/module-setup.sh | 4 ++--
|
|
|
d4a4eb |
modules.d/98dracut-systemd/dracut-cmdline.sh | 2 +-
|
|
|
d4a4eb |
modules.d/99base/init.sh | 2 +-
|
|
|
d4a4eb |
4 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
d4a4eb |
|
|
|
d4a4eb |
diff --git a/modules.d/40network/netroot.sh b/modules.d/40network/netroot.sh
|
|
|
d4a4eb |
index 207364cd..654cfc72 100755
|
|
|
d4a4eb |
--- a/modules.d/40network/netroot.sh
|
|
|
d4a4eb |
+++ b/modules.d/40network/netroot.sh
|
|
|
d4a4eb |
@@ -66,7 +66,7 @@ if [ -z "$2" ]; then
|
|
|
d4a4eb |
|
|
|
d4a4eb |
# Check: do we really know how to handle (net)root?
|
|
|
d4a4eb |
[ -z "$root" ] && die "No or empty root= argument"
|
|
|
d4a4eb |
- [ -z "$rootok" ] && die "Don't know how to handle 'root=$root'"
|
|
|
d4a4eb |
+ [ -z "$rootok" ] && die "X2 Don't know how to handle 'root=$root'"
|
|
|
d4a4eb |
|
|
|
d4a4eb |
handler=${netroot%%:*}
|
|
|
d4a4eb |
handler=${handler%%4}
|
|
|
d4a4eb |
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
|
|
|
d4a4eb |
index 79af4a47..f6f3520d 100755
|
|
|
d4a4eb |
--- a/modules.d/95iscsi/module-setup.sh
|
|
|
d4a4eb |
+++ b/modules.d/95iscsi/module-setup.sh
|
|
|
d4a4eb |
@@ -4,7 +4,7 @@
|
|
|
d4a4eb |
check() {
|
|
|
d4a4eb |
local _rootdev
|
|
|
d4a4eb |
# If our prerequisites are not met, fail anyways.
|
|
|
d4a4eb |
- require_binaries hostname iscsi-iname iscsiadm iscsid || return 1
|
|
|
d4a4eb |
+ require_binaries iscsi-iname iscsiadm iscsid || return 1
|
|
|
d4a4eb |
|
|
|
d4a4eb |
# If hostonly was requested, fail the check if we are not actually
|
|
|
d4a4eb |
# booting from root.
|
|
|
d4a4eb |
@@ -206,7 +206,7 @@ cmdline() {
|
|
|
d4a4eb |
install() {
|
|
|
d4a4eb |
inst_multiple -o iscsiuio
|
|
|
d4a4eb |
inst_libdir_file 'libgcc_s.so*'
|
|
|
d4a4eb |
- inst_multiple umount hostname iscsi-iname iscsiadm iscsid
|
|
|
d4a4eb |
+ inst_multiple umount iscsi-iname iscsiadm iscsid
|
|
|
d4a4eb |
|
|
|
d4a4eb |
inst_multiple -o \
|
|
|
d4a4eb |
$systemdsystemunitdir/iscsid.socket \
|
|
|
d4a4eb |
diff --git a/modules.d/98dracut-systemd/dracut-cmdline.sh b/modules.d/98dracut-systemd/dracut-cmdline.sh
|
|
|
d4a4eb |
index bff9435a..89c52d13 100755
|
|
|
d4a4eb |
--- a/modules.d/98dracut-systemd/dracut-cmdline.sh
|
|
|
d4a4eb |
+++ b/modules.d/98dracut-systemd/dracut-cmdline.sh
|
|
|
d4a4eb |
@@ -76,7 +76,7 @@ case "${root}${root_unset}" in
|
|
|
d4a4eb |
esac
|
|
|
d4a4eb |
|
|
|
d4a4eb |
[ -z "${root}${root_unset}" ] && die "Empty root= argument"
|
|
|
d4a4eb |
-[ -z "$rootok" ] && die "Don't know how to handle 'root=$root'"
|
|
|
d4a4eb |
+[ -z "$rootok" ] && die "X1 Don't know how to handle 'root=$root'"
|
|
|
d4a4eb |
|
|
|
d4a4eb |
export root rflags fstype netroot NEWROOT
|
|
|
d4a4eb |
|
|
|
d4a4eb |
diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
|
|
|
d4a4eb |
index e4f7cff1..3e20069f 100755
|
|
|
d4a4eb |
--- a/modules.d/99base/init.sh
|
|
|
d4a4eb |
+++ b/modules.d/99base/init.sh
|
|
|
d4a4eb |
@@ -136,7 +136,7 @@ getarg 'rd.break=cmdline' -d 'rdbreak=cmdline' && emergency_shell -n cmdline "Br
|
|
|
d4a4eb |
source_hook cmdline
|
|
|
d4a4eb |
|
|
|
d4a4eb |
[ -z "$root" ] && die "No or empty root= argument"
|
|
|
d4a4eb |
-[ -z "$rootok" ] && die "Don't know how to handle 'root=$root'"
|
|
|
d4a4eb |
+[ -z "$rootok" ] && die "X0 Don't know how to handle 'root=$root'"
|
|
|
d4a4eb |
|
|
|
d4a4eb |
export root rflags fstype netroot NEWROOT
|
|
|
d4a4eb |
|
|
|
d4a4eb |
|