16 lines
287 B
Bash
16 lines
287 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
. ./build.sh
|
||
|
|
||
|
mkdir -p isodir
|
||
|
mkdir -p isodir/boot
|
||
|
mkdir -p isodir/boot/grub
|
||
|
|
||
|
cp sysroot/boot/rockos.kernel isodir/boot/rockos.kernel
|
||
|
cat > isodir/boot/grub/grub.cfg << EOF
|
||
|
menuentry "rockOS" {
|
||
|
multiboot /boot/rockos.kernel
|
||
|
}
|
||
|
EOF
|
||
|
grub2-mkrescue -o rockos.iso isodir
|