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