diff --git a/README.md b/README.md index 18324b6..973ff12 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,13 @@ # Kernel ## Synopsis -A hobby OS written in Nim. \ No newline at end of file +A hobby OS written in Nim. + +## Requirements +* nim +* clang +* glibc-32 +* nasm +* grub2 +* make +* qemu diff --git a/builddisc.sh b/builddisc.sh index 09c39cd..682cdc7 100755 --- a/builddisc.sh +++ b/builddisc.sh @@ -3,4 +3,8 @@ rm -r isodir mkdir -p isodir/boot/grub cp myos.bin isodir/boot/kernel cp grub.cfg isodir/boot/grub/grub.cfg -grub-mkrescue -o myos.iso isodir +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