]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Support passing the live_dir with live_dir=
authorJeremy Katz <katzj@redhat.com>
Wed, 22 Jul 2009 20:11:54 +0000 (16:11 -0400)
committerHarald Hoyer <harald@redhat.com>
Tue, 4 Aug 2009 14:25:43 +0000 (16:25 +0200)
The live image is assumed to be under LiveOS/ unless live_dir
is passed specifying otherwise

modules.d/90dmsquash-live/dmsquash-live-root

index b3fa0d4a49672bc3c4c9b820dfb015a777a28f97..c383948bfe8759127ccdb4910f252417c7453740 100755 (executable)
@@ -39,9 +39,11 @@ if [ "$RES" != "0" ]; then
     exit 1
 fi
 
-# need to handle parsing out some more pieces; keeping track of them here
+# 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"
 overlay=off
-live_dir="LiveOS"
 live_ram=0
 reset_overlay=0