From 9ecfd3cdaa73ef39e4f8a1505f39183bc4edd523 Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Mon, 5 Jul 2010 17:07:10 +0200 Subject: Avoiding using busybox cpio applet, this should fix snapshot restore. --- scripts/live | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3