Added some compability for command name differences on different distros. Added some requirements documentation.
This commit is contained in:
parent
e636f24995
commit
cf1d4e59e0
@ -2,3 +2,12 @@
|
|||||||
## Synopsis
|
## 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
|
mkdir -p isodir/boot/grub
|
||||||
cp myos.bin isodir/boot/kernel
|
cp myos.bin isodir/boot/kernel
|
||||||
cp grub.cfg isodir/boot/grub/grub.cfg
|
cp grub.cfg isodir/boot/grub/grub.cfg
|
||||||
|
if command -v grub-mkrescue; then
|
||||||
grub-mkrescue -o myos.iso isodir
|
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