Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- mkdir -p mylive/iso/isolinux
- cd mylive/iso/isolinux
- #copy both a kernel and a initrd from /boot
- #or you could mkinitramfs -o initrd for the init ramdisk
- cp /boot/vmlinuz-3.10-3-amd64 ./linux
- cp /boot/initrd.img-3.10-3-amd64 ./initrd
- #copy isolinuxbin
- #find /usr -name "isolinux.bin"
- cp /usr/share/syslinux/themes/debian-wheezy/isolinux-live/isolinux.bin ./
- #welcome message
- echo "========================" > boot.txt
- echo "Welcome to my Linux" >> boot.txt
- echo "========================" >> boot.txt
- #create menu
- cat << EOF > isolinux.cfg
- display boot.txt
- prompt 1
- default mylinux
- label mylinux
- kernel linux
- append initrd=initrd
- EOF
- #Create ISO
- cd ../../
- xorrisofs -l -J -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat -o mylinux.iso iso
- #check with qemu (check arch)
- qemu-system-x86_64 -cdrom mylinux.iso
Add Comment
Please, Sign In to add comment