]> git.sur5r.net Git - bacula/rescue/blobdiff - rescue/linux/usb/remaster/write_sqfs_to_disk_image
Move usb to oldusb
[bacula/rescue] / rescue / linux / usb / remaster / write_sqfs_to_disk_image
diff --git a/rescue/linux/usb/remaster/write_sqfs_to_disk_image b/rescue/linux/usb/remaster/write_sqfs_to_disk_image
deleted file mode 100755 (executable)
index c0c8597..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-#
-#  Put a new squashfs on the disk image
-#
-
-. ../config
-
-
-if [ ! -d ${DISK_IMAGE}/casper ] ; then
-  echo "Cannot find ${DISK_IMAGE}/casper directory -- possibly not detarred"
-  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
-
-echo "Moving new squashfs to ${DISK_IMAGE}"
-cp filesystem.manifest ${DISK_IMAGE}/casper/
-cp filesystem.manifest ${DISK_IMAGE}/casper/filesystem.manifest-desktop
-mv filesystem.squashfs ${DISK_IMAGE}/casper/
-
-echo "Removing old initrd and kernel image"
-rm -f ${DISK_IMAGE}/casper/initrd.gz
-rm -f ${DISK_IMAGE}/casper/vmlinuz
-
-echo "Copying new initrd and kernel image"
-cp sqfs/initrd.img ${DISK_IMAGE}/casper/initrd.gz
-cp sqfs/vmlinuz ${DISK_IMAGE}/casper/vmlinuz
-sync
-
-echo "Now you just need to tar up ${DISK_IMAGE}"