Files
Luke Street 295ec24a65 Serial I/O; simple VGA graphics output; multiboot info & memory map
Initial work on shell history using arrow keys
2018-09-27 01:06:55 -04:00

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