]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
livenet: avoid spurious error message / wait_for_dev
authorWill Woods <wwoods@redhat.com>
Wed, 15 Feb 2012 18:36:09 +0000 (13:36 -0500)
committerHarald Hoyer <harald@redhat.com>
Thu, 16 Feb 2012 10:21:34 +0000 (11:21 +0100)
If the user didn't request a livenet boot, don't print an error
and don't do wait_for_dev.

Signed-off-by: Will Woods <wwoods@redhat.com>
modules.d/90livenet/parse-livenet.sh

index 042cc5144ffe7acb414136f241c142b9a0d912a6..926dba2249987fc1547b1dc167221ab4065edb88 100755 (executable)
@@ -15,8 +15,7 @@ if get_url_handler "$liveurl" >/dev/null; then
     netroot="livenet:$liveurl"
     root="livenet" # quiet complaints from init
     rootok=1
+    wait_for_dev /dev/root
 else
     info "livenet: no url handler for $liveurl"
 fi
-
-wait_for_dev /dev/root