X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive;h=d35fb0814c758d48699e6d5e96b17a7362f74a56;hb=9ecfd3cdaa73ef39e4f8a1505f39183bc4edd523;hp=412094aee2b4990b231e064e71da8d423ed4abee;hpb=4b1c986014cfed5a6e4380fe73b609bd7d2d8869;p=live-boot-grml.git diff --git a/scripts/live b/scripts/live index 412094a..d35fb08 100755 --- a/scripts/live +++ b/scripts/live @@ -992,9 +992,9 @@ try_snap () cpioargs='--unconditional --make-directories' fi - if ! (cd "${snap_mount}" && zcat "${snapback}/${snapfile}" | cpio $cpioargs --extract --preserve-modification-time --no-absolute-filenames --sparse 2>/dev/null) + if ! (cd "${snap_mount}" && zcat "${snapback}/${snapfile}" | $cpiopath $cpioargs --extract --preserve-modification-time --no-absolute-filenames --sparse 2>/dev/null) then - log_warning_msg "failure to \"zcat ${snapback}/${snapfile} | cpio $cpioargs --extract --preserve-modification-time --no-absolute-filenames --sparse\"" + log_warning_msg "failure to \"zcat ${snapback}/${snapfile} | $cpiopath $cpioargs --extract --preserve-modification-time --no-absolute-filenames --sparse\"" fi fi @@ -1704,6 +1704,20 @@ mountroot () # Do a local boot from hd livefs_root=${ROOT} else + if [ -x /usr/bin/memdiskfind ] + then + MEMDISK=$(/usr/bin/memdiskfind) + + if [ $? -eq 0 ] + then + # We found a memdisk, set up phram + modprobe phram phram=memdisk,${MEMDISK} + + # Load mtdblock, the memdisk will be /dev/mtdblock0 + modprobe mtdblock + fi + fi + # Scan local devices for the image i=0 while [ "$i" -lt 60 ]