]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/usb/remaster/update_sqfs
Update
[bacula/rescue] / rescue / linux / usb / remaster / update_sqfs
1 #!/bin/sh
2 #
3 #  Put a new squashfs on the disk image
4 #
5
6 . ../config
7
8
9 if [ ! -d ${DISK_IMAGE}/casper ] ; then
10   echo "Cannot find ${DISK_IMAGE}/casper directory -- possibly not detarred"
11   exit 1
12 fi
13
14 echo "Removing old squashfs"
15 rm -f ${DISK_IMAGE}/casper/filesystem.squashfs ${DISK_IMAGE}/casper/filesystem.manifest 
16 rm -f ${DISK_IMAGE}/casper/filesystem.manifest-desktop
17
18 echo "Copying new squashfs"
19 cp filesystem.manifest ${DISK_IMAGE}/casper/
20 cp filesystem.manifest ${DISK_IMAGE}/casper/filesystem.manifest-desktop
21 cp filesystem.squashfs ${DISK_IMAGE}/casper/
22 sync