]> git.sur5r.net Git - bacula/rescue/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Sat, 3 Jan 2009 16:10:43 +0000 (16:10 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 3 Jan 2009 16:10:43 +0000 (16:10 +0000)
rescue/linux/usb/remaster/pack_initrd
rescue/linux/usb/remaster/update_disk_image [deleted file]
rescue/linux/usb/remaster/update_packages

index f3a1e675be1c229018c08a4a2151d4dbc6e4153b..bd5677fff1bc32ed1a4ff848c7215a86183dde5c 100755 (executable)
@@ -1,5 +1,9 @@
 #!/bin/sh
 #
+if [ ! -d initrd ] ; then
+  echo "Cannot find initrd directory."
+  exit 1
+fi
 cd initrd
 echo "Packing initrd to initrd.gz ..."
 find . | cpio -o -H newc | gzip -9 > ../initrd.gz
diff --git a/rescue/linux/usb/remaster/update_disk_image b/rescue/linux/usb/remaster/update_disk_image
deleted file mode 100644 (file)
index 640f097..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-#
-# Update the disk image with a new squashfs
-#
-. ./config
-
-rm -f $DISK_IMAGE/casper/filesystem.squashfs
-rm -f $DISK_IMAGE/casper/filesystem.mainfest
-rm -f $DISK_IMAGE/casper/filesystem.mainfest-desktop
-cp filesystem.squashfs $DISK_IMAGE/casper/filesystem.squashfs
-cp filesystem.mainfest $DISK_IMAGE/casper/filesystem.mainfest
-cp filesystem.mainfest $DISK_IMAGE/casper/filesystem.mainfest-desktop
index 4f51aed4e476e92a54d27ac127ae810320b5cf64..b9900014c95d2975beaa6c25c2899c098a1f53f7 100644 (file)
@@ -4,6 +4,10 @@
 #   but it should work even if you have already updated it.
 #
 
+if [ ! -d sqfs ] ; then
+  echo "Cannot find squashfs (sqfs directory)"
+  exit 1
+fi
 chroot sqfs /bin/sh
 mount -t proc none /proc/
 mount -t sysfs non /sys/