2017-10-20 20:58:06 +01:00
|
|
|
#!/bin/sh
|
|
|
|
rm -r isodir
|
|
|
|
mkdir -p isodir/boot/grub
|
2017-10-21 18:46:59 +01:00
|
|
|
cp myos.bin isodir/boot/kernel
|
2017-10-20 20:58:06 +01:00
|
|
|
cp grub.cfg isodir/boot/grub/grub.cfg
|
2017-10-31 01:33:37 +00:00
|
|
|
if command -v grub-mkrescue; then
|
|
|
|
grub-mkrescue -o myos.iso isodir
|
|
|
|
elif command -v grub2-mkrescue; then
|
|
|
|
grub2-mkrescue -o myos.iso isodir
|
|
|
|
fi
|