Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- cd /tmp
- wget -c "http://distro.ibiblio.org/tinycorelinux/4.x/x86/release/Core-current.iso" -O /tmp/core.iso&& echo "Mounting ISO" || exit 1
- mount -o loop /tmp/core.iso /mnt &&
- mkdir /tmp/core
- cd /tmp/core
- cp -r /mnt/* ./
- cd boot
- umount /mnt
- #rm /tmp/core.iso
- mkdir fs
- cd fs
- zcat ../core.gz |cpio -i -H newc -d
- chroot . sh
- vim /tmp/core/boot/isolinux/isolinux.cfg
- vim /tmp/core/boot/isolinux/boot.msg
- vim /tmp/core/boot/isolinux/f2
- vim /tmp/core/boot/isolinux/f3
- vim /tmp/core/boot/isolinux/f4
- find | cpio -o -H newc | gzip -2 > ../core.gz
- cd /tmp
- rm -fr /tmp/core/boot/fs
- xorrisofs -l -J -V My-custom-core -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o new.iso core
- qemu -cdrom new.iso
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement