aboutsummaryrefslogblamecommitdiff
path: root/make_cdrom.sh
blob: b481fcc93a5e364c607e8909398383296a983eb5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                     
                                                      
                                                     
                  


                                                                 
                                       
#!/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 src/kernel/kernel.bin cdrom; strip cdrom/kernel.bin
cp src/apps/init/init.bin cdrom; strip cdrom/init.bin
cp README.md cdrom

genisoimage -R -b boot/grub/stage2_eltorito -no-emul-boot \
	-boot-load-size 4 -boot-info-table -input-charset ascii \
	-A kogata-os -o cdrom.iso cdrom