From 1db310216abcf4c0fbccfea9f3fbc1eceecb3a53 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 3 Jan 2009 16:05:15 +0000 Subject: [PATCH] Update --- rescue/linux/usb/remaster/write_sqfs_to_disk_image | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rescue/linux/usb/remaster/write_sqfs_to_disk_image b/rescue/linux/usb/remaster/write_sqfs_to_disk_image index 6b77916..4dceb43 100755 --- a/rescue/linux/usb/remaster/write_sqfs_to_disk_image +++ b/rescue/linux/usb/remaster/write_sqfs_to_disk_image @@ -11,6 +11,11 @@ if [ ! -d ${DISK_IMAGE}/casper ] ; then exit 1 fi +if [ ! f filesystem.squashfs ] ; then + echo "Cannot find filesystem.squashfs ..." + exit 1 +fi + echo "Removing old squashfs" rm -f ${DISK_IMAGE}/casper/filesystem.squashfs ${DISK_IMAGE}/casper/filesystem.manifest rm -f ${DISK_IMAGE}/casper/filesystem.manifest-desktop -- 2.39.5