]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/parse-ip-opts.sh: relax bootdev handling
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Oct 2012 09:54:07 +0000 (11:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 16 Oct 2012 11:21:14 +0000 (13:21 +0200)
modules.d/40network/parse-ip-opts.sh

index 5637a9a8b8e56bade33ec617a8eb302ce1509c3e..c7dc3ce5cdf68ce275dacd7c9bb8a78f61f092de 100755 (executable)
@@ -40,9 +40,10 @@ fi
 unset count
 
 # If needed, check if bootdev= contains anything usable
+BOOTDEV=$(getarg bootdev=)
+
 if [ -n "$NEEDBOOTDEV" ] ; then
-    BOOTDEV=$(getarg bootdev=) || die "Please supply bootdev argument for multiple ip= lines"
-    [ -z "$BOOTDEV" ] && die "Bootdev argument is empty"
+    [ -z "$BOOTDEV" ] && warn "Please supply bootdev argument for multiple ip= lines"
 fi
 
 # If ibft is requested, read ibft vals and write ip=XXX cmdline args
@@ -96,9 +97,6 @@ for p in $(getargs ip=); do
         IFACES="$IFACES $dev"
     fi
 
-    # Small optimization for udev rules
-    [ -z "$NEEDBOOTDEV" ] && [ -n "$dev" ] && BOOTDEV=$dev
-
     # Do we need to check for specific options?
     if [ -n "$NEEDDHCP" ] || [ -n "$DHCPORSERVER" ] ; then
         # Correct device? (Empty is ok as well)