summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Amadori <amadorim@vdavda.com>2010-07-05 17:07:10 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:53:26 +0100
commit9ecfd3cdaa73ef39e4f8a1505f39183bc4edd523 (patch)
tree31f006d21589ebaa4505244213da9780dfe5aa14
parente08c082e758afa3341a9ebb6e00927d9873c7230 (diff)
downloadlive-boot-9ecfd3cdaa73ef39e4f8a1505f39183bc4edd523.tar.gz
live-boot-9ecfd3cdaa73ef39e4f8a1505f39183bc4edd523.zip
Avoiding using busybox cpio applet, this should fix snapshot restore.
-rwxr-xr-xscripts/live4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/live b/scripts/live
index 5b5a3b9..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