Changeset 2282 in /cluster/svnroot


Ignore:
Timestamp:
Mar 24, 2010 2:19:14 PM (11 years ago)
Author:
amweeden06
Message:

Extended usb script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/trunk/bin/build_bootable_USB.sh

    r2281 r2282  
    66else
    77echo "USAGE:\n $0 <USB DRIVE>"
     8exit
     9fi
     10
     11if [ $2 ]; then
     12ISO_PATH=$2
     13else
     14echo "USAGE:\n $0 <USB DRIVE> <ISO>"
    815exit
    916fi
     
    3643syslinux -s "${DRIVE}1"
    3744
    38 echo 'Script finished.  Still need to mount.'
     45echo 'Making temporary directories'
     46mkdir iso-tmp
     47mkdir usb-tmp
     48
     49echo 'Mounting image and partition to temporary directories'
     50mount -o loop $ISO_PATH iso-tmp/
     51mount ${DRIVE}1 usb-tmp/
     52
     53echo 'Copying files from image to partition'
     54echo 'This will take a while...'
     55rsync -Plarv iso-tmp/ usb-tmp/
     56cp iso-tmp/boot/isolinux/* usb-tmp/
     57mv usb-tmp/isolinux.cfg usb-tmp/syslinux.cfg
     58
     59echo 'Unmounting image and partition
     60umount iso-tmp/
     61umount usb-tmp/
     62
     63echo 'Script finished.'
     64beep -l 1000 
Note: See TracChangeset for help on using the changeset viewer.