]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Parse options earlier for live root
authorJeremy Katz <katzj@redhat.com>
Wed, 22 Jul 2009 20:31:24 +0000 (16:31 -0400)
committerHarald Hoyer <harald@redhat.com>
Tue, 4 Aug 2009 14:25:43 +0000 (16:25 +0200)
modules.d/90dmsquash-live/dmsquash-live-root

index 9b0371374c74d57ce3365eef29cb8a01e6b13bc6..b8d388093c68ab392fb5f50b0cca2debc6f1a489 100755 (executable)
@@ -14,6 +14,14 @@ fi
 [ -z "$1" ] && exit 1
 livedev="$1"
 
+# parse various live image specific options that make sense to be
+# specified as their own things
+live_dir=$(getarg live_dir)
+[ -z "$live_dir" ] && live_dir="LiveOS"
+getarg live_ram && live_ram="yes"
+getarg reset_overlay && reset_overlay="yes"
+overlay=$(getarg overlay)
+
 # FIXME: we need to be able to hide the plymouth splash for the check really
 [ -e $livedev ] & fs=$(blkid -s TYPE -o value $livedev)
 if [ "$fs" == "iso9660" -o "$fs" = "udf" ]; then
@@ -39,14 +47,6 @@ if [ "$RES" != "0" ]; then
     exit 1
 fi
 
-# parse various live image specific options that make sense to be
-# specified as their own things
-live_dir=$(getarg live_dir)
-[ -z "$live_dir" ] && live_dir="LiveOS"
-getarg live_ram && live_ram="yes"
-getarg reset_overlay && reset_overlay="yes"
-overlay=$(getarg overlay)
-
 # overlay setup helper function
 do_live_overlay() {
     # create a sparse file for the overlay