#!/bin/bash set -e # Build the bootloader nasm -f bin mbr.asm -o mbr.bin # Build the kernel cargo build --release # Create disk image ./create_image.sh # Write MBR dd if=mbr.bin of=disk.img conv=notrunc echo "Build complete! You can now boot disk.img"