Simplifying making a USB install key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Ok, where/how do I submit this to the CentOS project?

Here's a complete script - anyone, *please* feel free to test it, and let
me know if I've missed anything.

Thanks in advance.

        mark

#!/bin/bash
# ###################################
# Author: mark roth
# Date: 30 Apr. 2010
# Purpose: to create a working, bootable CentOS install on a USB key
#####################################

if [[ $# < 2 ]]; then
   echo "usage: $0 <devname> <path/to/install.iso>"
   echo "  Example: $0 sdb /scratch/CentOS-5.4-bin-DVD.iso"
   echo "  Note: you must install livecd-tools before running this."
   exit
fi

/sbin/sfdisk -n -uM /dev/$1 << EOF
,10,b,*
,,83
;
;
EOF

mkfs -t vfat /dev/${1}1
mkfs /dev/${1}2

/usr/bin/livecd-iso-to-disk /scratch/CentOS-5.4-i386-LiveCD.iso /dev/${1}1
mount /dev/${1}2 /mnt
cp $2 /mnt/

# end

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux