11 lines
263 B
Bash
Executable File
11 lines
263 B
Bash
Executable File
#!/bin/sh
|
|
rm -r isodir
|
|
mkdir -p isodir/boot/grub
|
|
cp myos.bin isodir/boot/kernel
|
|
cp grub.cfg isodir/boot/grub/grub.cfg
|
|
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
|