]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix live crash with livenet installed
authorWill Woods <wwoods@redhat.com>
Mon, 15 Aug 2011 15:10:59 +0000 (11:10 -0400)
committerHarald Hoyer <harald@redhat.com>
Wed, 17 Aug 2011 07:02:22 +0000 (09:02 +0200)
parse-livenet.sh shouldn't mess with $root unless it finds a valid URL.

modules.d/90livenet/parse-livenet.sh

index 78fc906f4abf5fc71be0ed42afe3badd8f505166..323fd4ae569626558202f700185f9520710b329f 100755 (executable)
@@ -12,8 +12,8 @@ liveurl="${liveurl#live:}"
 case "$liveurl" in
     http://*|https://*|ftp://*)
         netroot="livenet:$liveurl"
+        root="livenet" # quiet complaints from init
         rootok=1 ;;
 esac
 
-root="livenet" # quiet complaints from init
 echo '[ -e /dev/root ]' > $hookdir/initqueue/finished/livenet.sh