diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-12-17 19:08:44 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-12-17 19:08:44 +0000 |
commit | 32591a85e1da6a37178d5486c92216c8ef3bd632 (patch) | |
tree | e07f6b0169198790041e86abb0ad8207346b4705 /rescue/Flash/scripts/rescue_common | |
parent | fd93fc077796fde386555413b34a0caac4b6ea72 (diff) | |
download | drakx-32591a85e1da6a37178d5486c92216c8ef3bd632.tar drakx-32591a85e1da6a37178d5486c92216c8ef3bd632.tar.gz drakx-32591a85e1da6a37178d5486c92216c8ef3bd632.tar.bz2 drakx-32591a85e1da6a37178d5486c92216c8ef3bd632.tar.xz drakx-32591a85e1da6a37178d5486c92216c8ef3bd632.zip |
handle path to lzma distrib loopbacks
Diffstat (limited to 'rescue/Flash/scripts/rescue_common')
-rw-r--r-- | rescue/Flash/scripts/rescue_common | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rescue/Flash/scripts/rescue_common b/rescue/Flash/scripts/rescue_common index e1402cacc..77435e6da 100644 --- a/rescue/Flash/scripts/rescue_common +++ b/rescue/Flash/scripts/rescue_common @@ -192,3 +192,14 @@ function lumount() { umount $dir losetup -d $loop } + +function set_sfs_loop() { + local dir=$1 + sfs_loop_std="$dir$loopbacks_rel/distrib.sqfs" + sfs_loop_lzma="$dir$loopbacks_rel/distrib-lzma.sqfs" + if [ -e $sfs_loop_lzma ]; then + sfs_loop=$sfs_loop_lzma + else + sfs_loop=$sfs_loop_std + fi +} |