]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
preserve the original root= variable
authorHarald Hoyer <harald@redhat.com>
Tue, 2 Jun 2009 16:01:52 +0000 (18:01 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 2 Jun 2009 16:01:52 +0000 (18:01 +0200)
modules.d/95iscsi/iscsiroot

index 2fdc281ed56989c5d56c18ec2d9873701eebac9b..8e20fda19cad6138bda604fcd2cb83b2d8c418c9 100755 (executable)
@@ -23,9 +23,9 @@ root="$2"
 
 
 if [ $root = ${root#iscsi:} ]; then
-       root=$(getarg iscsiroot)
+       iroot=$(getarg iscsiroot)
 else
-       root=${root#iscsi:}
+       iroot=${root#iscsi:}
 fi
 
 if getarg iscsi_firmware >/dev/null; then
@@ -57,7 +57,7 @@ else
        # override conf/commandline options by dhcp root_path
        OLDIFS="$IFS"
        IFS=:
-       set $root
+       set $iroot
        iscsi_target_ip=$1; shift
        iscsi_protocol=$1; shift # ignored
        iscsi_target_port=$1; shift