Commit 7c878c18 authored by Tru  HUYNH's avatar Tru HUYNH

initial version

parent 774c92cb
yum -y install wget
parted -s /dev/vdb mklabel msdos
parted -s /dev/vdb mkpart primary ext2 1m 100
parted -s /dev/vdb set 1 boot on
mkfs.ext2 -m 0 -L XXX /dev/vdb1
mkdir /a
mount /dev/vdb1 /a
mkdir -p /a/extlinux
wget -O /a/extlinux/extlinux.conf
mkdir -p /a/extlinux/
wget -O /a/extlinux/ipxe.lkrn
if [ ! -f syslinux-6.03/bios/extlinux/extlinux ]; then
yum -y install glibc.i686
wget -c
tar xzvf syslinux-6.03.tar.gz
syslinux-6.03/bios/extlinux/extlinux --install /a/extlinux
dd if=syslinux-6.03/bios/mbr/mbr.bin of=/dev/vdb
(cd /a && find . -ls)
umount /a
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment