do not edit — generated by btf.
git.druid.rocksindexdruid520kaboommk/rb.sh

mk/rb.sh


#!/bin/sh
# runs out/disk.img with NO -kernel flag at all -- qemu's own bios
# (seabios) does the real mbr-boot dance through dynamite exactly like
# a real machine would, interactively (vga text-mode via curses --
# ctrl+alt+2 switches to the qemu monitor, ctrl+alt+1 back to the vga
# view). needs a real tty; run this from an actual terminal, not
# through anything that pipes stdin/stdout. see mk/rbn.sh for the
# headless (-nographic) variant -- same disk, same real bios-boot
# path, just a different console. see mk/r.sh/mk/rn.sh for the other,
# older -kernel path onto the identical kernel.
. ./mk.conf
set -e
 
if [ ! -f "$out/disk.img" ]; then
	echo "rb.sh: $out/disk.img not built yet -- run mk/ba.sh first." >&2
	exit 1
fi
 
exec "$qemu" -drive file="$out/disk.img",format=raw,if=ide \
	-display curses $qemuflgs
powered by btf.