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

initial version

parent 774c92cb
#!/bin/sh
# https://gitlab.pasteur.fr/tru/BGA2017/raw/master/okeanos-global/create-vdb-ipxe.sh
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 https://gitlab.pasteur.fr/tru/BGA2017/raw/master/okeanos-global/extlinux-ipxe.conf
mkdir -p /a/extlinux/
wget -O /a/extlinux/ipxe.lkrn https://gitlab.pasteur.fr/tru/BGA2017/raw/master/okeanos-global/ipxe.lkrn
if [ ! -f syslinux-6.03/bios/extlinux/extlinux ]; then
yum -y install glibc.i686
wget -c https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.gz
tar xzvf syslinux-6.03.tar.gz
fi
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