Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
dracut.13287
0597-iscsiroot-parse_iscsi_root-overwrites-comm...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0597-iscsiroot-parse_iscsi_root-overwrites-command-line-a.patch of Package dracut.13287
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor