From: Jeremy Katz Date: Wed, 22 Jul 2009 20:11:54 +0000 (-0400) Subject: Support passing the live_dir with live_dir= X-Git-Tag: 0.8~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2a2a956dd88b99240da1ed5c86e3268efc04d1b;p=thirdparty%2Fdracut.git Support passing the live_dir with live_dir= The live image is assumed to be under LiveOS/ unless live_dir is passed specifying otherwise --- diff --git a/modules.d/90dmsquash-live/dmsquash-live-root b/modules.d/90dmsquash-live/dmsquash-live-root index b3fa0d4a4..c383948bf 100755 --- a/modules.d/90dmsquash-live/dmsquash-live-root +++ b/modules.d/90dmsquash-live/dmsquash-live-root @@ -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