cynix

x86 UNIX-like OS
git clone git://git.2f30.org/cynix
Log | Files | Refs | README | LICENSE

makeiso.sh (433B)


      1 #!/bin/bash
      2 
      3 if [ ! -f "kernel" ]; then
      4 	echo "[+] the kernel has to be compiled first!" 1>&2
      5 	exit
      6 fi
      7 mkdir -p iso/boot/grub
      8 cp stage2_eltorito iso/boot/grub
      9 cp kernel initrd iso/boot
     10 echo "default 0;title cynix;kernel /boot/kernel;module /boot/initrd" | \
     11 	sed 's/;/\n/g' > iso/boot/grub/menu.lst
     12 genisoimage -R -b boot/grub/stage2_eltorito -no-emul-boot \
     13 	-input-charset utf-8 -boot-load-size 4 -boot-info-table -o cynix.iso iso