commit f1203123de54e59255485bf99d36366b3e786946 parent 0742c45ef2d8d134c79575f09de63339dd687d45 Author: sin <sin@2f30.org> Date: Mon, 16 Sep 2013 13:49:58 +0100 Add syslinux Diffstat:
M | create-bootable | | | 22 | ---------------------- |
D | data/syslinux/hdt.c32 | | | 0 | |
D | data/syslinux/menu.c32 | | | 0 | |
D | data/syslinux/reboot.c32 | | | 0 | |
A | pkgs/syslinux | | | 16 | ++++++++++++++++ |
5 files changed, 16 insertions(+), 22 deletions(-)
diff --git a/create-bootable b/create-bootable @@ -20,31 +20,9 @@ mount $partition /mnt || exit 1 cp -dar root/* /mnt extlinux --install /mnt/boot -cp data/syslinux/* /mnt/boot dd if=data/mbr.bin conv=notrunc bs=440 count=1 of=$lodev -cat << EOF > /mnt/boot/extlinux.conf -DEFAULT morpheus -PROMPT 0 -TIMEOUT 50 - -UI menu.c32 - -MENU TITLE Morpheus - -LABEL morpheus - MENU LABEL Morpheus - LINUX /boot/bzImage - APPEND root=/dev/sda1 init=/init quiet rw -LABEL hdt - MENU LABEL HDT (Hardware Detection Tool) - COM32 hdt.c32 -LABEL reboot - MENU LABEL Reboot - COM32 reboot.c32 -EOF - umount /mnt sleep 3 losetup -d $lodev diff --git a/data/syslinux/hdt.c32 b/data/syslinux/hdt.c32 Binary files differ. diff --git a/data/syslinux/menu.c32 b/data/syslinux/menu.c32 Binary files differ. diff --git a/data/syslinux/reboot.c32 b/data/syslinux/reboot.c32 Binary files differ. diff --git a/pkgs/syslinux b/pkgs/syslinux @@ -0,0 +1,16 @@ +url=$mirror/syslinux.tar.gz + +fetch() { + # Fetch package + wget -c $url -O src/syslinux.tar.gz +} + +unpack() { + pushd src + [ -d syslinux ] || tar xzf syslinux.tar.gz + popd +} + +install() { + cp -r src/syslinux/* $root/ +}