13 lines
386 B
Bash
13 lines
386 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if test "$NOGRAPHIC" = true; then
|
||
|
append="console=ttyS0"
|
||
|
qemuappend="-nographic"
|
||
|
fi
|
||
|
|
||
|
doas chown root:$(id -u) -R boot/ && doas chmod g+rw -R boot/
|
||
|
qemu-system-x86_64 -enable-kvm -m 2048 \
|
||
|
-drive file=image.squashfs,media=disk \
|
||
|
-kernel boot/vmlinuz-virt -initrd boot/initramfs-virt \
|
||
|
-append "root=/dev/sda rootfstype=squashfs init=/sbin/runit-init $append" $qemuappend
|