aboutsummaryrefslogtreecommitdiff
path: root/make_cdrom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make_cdrom.sh')
-rwxr-xr-xmake_cdrom.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/make_cdrom.sh b/make_cdrom.sh
new file mode 100755
index 0000000..ef9e5f7
--- /dev/null
+++ b/make_cdrom.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+mkdir -p cdrom/boot/grub
+
+if [ ! -e cdrom/boot/grub/stage2_eltorito ]; then
+ echo "Please copy grub's stage2_eltorito to cdrom/boot/grub."
+ exit -1
+fi
+
+cp menu_cdrom.lst cdrom/boot/grub/menu.lst
+cp kernel/kernel.bin cdrom; strip cdrom/kernel.bin
+
+genisoimage -R -b boot/grub/stage2_eltorito -no-emul-boot \
+ -boot-load-size 4 -boot-info-table -input-charset ascii \
+ -A macroscope -o cdrom.iso cdrom