Rename to build_pxe_boot.sh

This commit is contained in:
Dean Troyer 2011-09-28 14:14:33 -05:00
parent ddaf8b66d3
commit 9b5ebb5a3d

View file

@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
# make_pxe.sh - Create a PXE boot environment # build_pxe_boot.sh - Create a PXE boot environment
# #
# make_pxe.sh destdir # build_pxe_boot.sh destdir
# #
# Assumes syslinux is installed # Assumes syslinux is installed
# Configues PXE for Ubuntu Natty and FreeDOS # Only needs to run as root if the destdir permissions require it
UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64 UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64
@ -24,20 +24,13 @@ done
DEFAULT=$DEST_DIR/pxelinux.cfg/default DEFAULT=$DEST_DIR/pxelinux.cfg/default
cat >$DEFAULT <<EOF cat >$DEFAULT <<EOF
default menu.c32 default menu.c32
#display pxelinux.cfg/menu.txt
prompt 0 prompt 0
#timeout 0 timeout 0
MENU TITLE PXE Boot Menu MENU TITLE PXE Boot Menu
EOF EOF
MENU=$DEST_DIR/pxelinux.cfg/menu.txt
cat >$MENU <<EOF
PXE Boot Menu
EOF
# Get Ubuntu netboot # Get Ubuntu netboot
mkdir -p $DEST_DIR/ubuntu mkdir -p $DEST_DIR/ubuntu
cd $DEST_DIR/ubuntu cd $DEST_DIR/ubuntu
@ -50,9 +43,6 @@ LABEL ubuntu
KERNEL ubuntu/linux KERNEL ubuntu/linux
APPEND initrd=ubuntu/initrd.gz APPEND initrd=ubuntu/initrd.gz
EOF EOF
cat >>$MENU <<EOF
ubuntu - Ubuntu Natty
EOF
# Get Memtest # Get Memtest
cd $DEST_DIR cd $DEST_DIR
@ -66,9 +56,6 @@ LABEL memtest
MENU LABEL Memtest86+ MENU LABEL Memtest86+
KERNEL $MEMTEST_BIN KERNEL $MEMTEST_BIN
EOF EOF
cat >>$MENU <<EOF
memtest - Memtest86+
EOF
# Get FreeDOS # Get FreeDOS
mkdir -p $DEST_DIR/freedos mkdir -p $DEST_DIR/freedos
@ -82,9 +69,6 @@ LABEL freedos
KERNEL memdisk KERNEL memdisk
APPEND initrd=freedos/FDSTD.288 APPEND initrd=freedos/FDSTD.288
EOF EOF
cat >>$MENU <<EOF
freedos - FreeDOS
EOF
# Local disk boot # Local disk boot
cat >>$DEFAULT <<EOF cat >>$DEFAULT <<EOF
@ -94,7 +78,3 @@ LABEL local
MENU DEFAULT MENU DEFAULT
LOCALBOOT 0 LOCALBOOT 0
EOF EOF
cat >>$MENU <<EOF
local - Local disk boot
EOF