mirror of
https://github.com/encounter/osdev.git
synced 2026-03-30 11:33:54 -07:00
295ec24a65
Initial work on shell history using arrow keys
20 lines
306 B
Bash
Executable File
20 lines
306 B
Bash
Executable File
#!/bin/bash -ex
|
|
if [ ! -f "$1" ]; then
|
|
echo "Pass kernel as first arg" >&2
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p iso/boot/grub
|
|
cp "$1" iso/boot/kernel.bin
|
|
cat > iso/boot/grub/grub.cfg <<EOF
|
|
set timeout=0
|
|
set default=0
|
|
|
|
menuentry "OS" {
|
|
multiboot /boot/kernel.bin
|
|
boot
|
|
}
|
|
EOF
|
|
|
|
grub-mkrescue -o os.iso iso
|
|
rm -r iso |