#!/bin/bash # # This script sets a USB key up to be used as the auto-installation # media for imaging a workstation. Supply it with the imagename you want # the USB to pull down from the server, e.g. # # administrator@nordx-server:~$ ./image_mkusb 210 # # Make sure it's the first and only USB drive plugged in. # . /home/administrator/image_vars sudo umount /dev/sda sudo si_mkautoinstalldisk \ --device /dev/sda \ --append "IMAGESERVER=$IMAGESERVERIP IMAGENAME=$1 BITTORRENT=y SKIP_LOCAL_CFG=y" \ --yes