This repository has been archived on 2024-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
rockOS/iso.sh

19 lines
419 B
Bash
Raw Normal View History

2022-07-18 09:59:04 +03:00
#!/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
2022-07-27 05:49:06 +03:00
tar -cvf sysroot/boot/rockos.initrd fs/*
cp sysroot/boot/rockos.initrd isodir/boot/rockos.initrd
2022-07-18 09:59:04 +03:00
cat > isodir/boot/grub/grub.cfg << EOF
menuentry "rockOS" {
multiboot /boot/rockos.kernel
2022-07-27 05:49:06 +03:00
module /boot/rockos.initrd
2022-07-18 09:59:04 +03:00
}
EOF
2022-07-20 16:42:13 +03:00
"${GRUB_MKRESCUE}" -o rockos.iso isodir