OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dracut?expand=0&rev=139
39 lines
1.6 KiB
Diff
39 lines
1.6 KiB
Diff
From a9ef0960799ad8d95de2e13a9f8773e88826e83e Mon Sep 17 00:00:00 2001
|
|
From: Martin Wilck <mwilck@suse.com>
|
|
Date: Thu, 4 Apr 2019 15:29:04 +0200
|
|
Subject: [PATCH 3/6] iscsiroot: parse_iscsi_root overwrites command line args
|
|
|
|
iscsi_target_name, iscsi_target_ip, iscsi_target_port are
|
|
unconditionally overwritten by parse_iscsi_root. Don't set
|
|
them here, for code clarity.
|
|
---
|
|
modules.d/95iscsi/iscsiroot.sh | 8 ++------
|
|
1 file changed, 2 insertions(+), 6 deletions(-)
|
|
|
|
Index: dracut-044/modules.d/95iscsi/iscsiroot.sh
|
|
===================================================================
|
|
--- dracut-044.orig/modules.d/95iscsi/iscsiroot.sh
|
|
+++ dracut-044/modules.d/95iscsi/iscsiroot.sh
|
|
@@ -102,12 +102,6 @@ handle_netroot()
|
|
# override conf settings by command line options
|
|
arg=$(getarg rd.iscsi.initiator -d iscsi_initiator=)
|
|
[ -n "$arg" ] && iscsi_initiator=$arg
|
|
- arg=$(getargs rd.iscsi.target.name -d iscsi_target_name=)
|
|
- [ -n "$arg" ] && iscsi_target_name=$arg
|
|
- arg=$(getarg rd.iscsi.target.ip -d iscsi_target_ip)
|
|
- [ -n "$arg" ] && iscsi_target_ip=$arg
|
|
- arg=$(getarg rd.iscsi.target.port -d iscsi_target_port=)
|
|
- [ -n "$arg" ] && iscsi_target_port=$arg
|
|
arg=$(getarg rd.iscsi.target.group -d iscsi_target_group=)
|
|
[ -n "$arg" ] && iscsi_target_group=$arg
|
|
arg=$(getarg rd.iscsi.username -d iscsi_username=)
|
|
@@ -122,6 +116,8 @@ handle_netroot()
|
|
iscsi_param="$iscsi_param $p"
|
|
done
|
|
|
|
+ # this sets iscsi_target_name and possibly overwrites most
|
|
+ # parameters read from the command line above
|
|
parse_iscsi_root "$1" || return 1
|
|
|
|
# Bail out early, if there is no route to the destination
|