Added some compability for command name differences on different distros. Added some requirements documentation.
This commit is contained in:
parent
e636f24995
commit
cf1d4e59e0
11
README.md
11
README.md
@ -1,4 +1,13 @@
|
||||
# Kernel
|
||||
## Synopsis
|
||||
|
||||
A hobby OS written in Nim.
|
||||
A hobby OS written in Nim.
|
||||
|
||||
## Requirements
|
||||
* nim
|
||||
* clang
|
||||
* glibc-32
|
||||
* nasm
|
||||
* grub2
|
||||
* make
|
||||
* qemu
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user