]> git.sur5r.net Git - bacula/rescue/blob - rescue/linux/usb/load_disk_image
Update
[bacula/rescue] / rescue / linux / usb / load_disk_image
1 #!/bin/sh
2 #
3 # tar the disk image
4 #
5 . ./config
6
7 if [ ! `whoami` = "root" ] ; then
8   echo ""
9   echo "You need to be root to run this shell script"
10   echo ""
11   exit 1
12 fi
13
14 umount ${USB_DEV}1
15 mkfs.vfat -F 16 -n kubuntu8 ${USB_DEV}1
16 mount ${MOUNT_POINT}/kubuntu8
17 if [ $? -ne 0 ] ; then
18   echo "Mount of USB boot partition failed."
19   exit 1
20 fi
21 cd ${MOUNT_POINT}/kubuntu8
22 if [ $? -ne 0 ] ; then
23   echo "Could not cd to USB boot partition"
24   exit 1
25 fi
26 tar xfz ${BOOT_IMAGE} .
27 ls -l ${MOUNT_POINT}/kubuntu8
28 sync
29 unmount ${MOUNT_POINT}/kubuntu8