]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
90livenet/parse-livenet.sh: unset CMDLINE, after adding parameters
authorHarald Hoyer <harald@redhat.com>
Thu, 29 Mar 2012 09:40:16 +0000 (11:40 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 29 Mar 2012 09:40:16 +0000 (11:40 +0200)
modules.d/90livenet/parse-livenet.sh

index 3553cef1ee551ed97d660f213002144844881760..d1eb474fe3cbaf9ea5229a737c1514fe04108948 100755 (executable)
@@ -9,7 +9,10 @@
 updates=$(getarg live.updates=)
 if [ -n "$updates" ]; then
     # make sure network comes up even if we're doing a local live device
-    [ -z "$netroot" ] && echo "rd.neednet=1" > /etc/cmdline.d/90livenet.conf
+    if [ -z "$netroot" ]; then
+       echo "rd.neednet=1" > /etc/cmdline.d/90livenet.conf
+       unset CMDLINE
+    fi
     echo "$updates" > /tmp/liveupdates.info
     echo '[ -e /tmp/liveupdates.done ]' > \
         $hookdir/initqueue/finished/liveupdates.sh