diff options
Diffstat (limited to 'experiments/04_20251216_pkg_store/run_qemu.sh')
| -rwxr-xr-x | experiments/04_20251216_pkg_store/run_qemu.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/experiments/04_20251216_pkg_store/run_qemu.sh b/experiments/04_20251216_pkg_store/run_qemu.sh new file mode 100755 index 0000000..3d68892 --- /dev/null +++ b/experiments/04_20251216_pkg_store/run_qemu.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env sh + +QEMU_CMD="qemu-system-x86_64 \ + -nographic \ + -m 1024M \ + -kernel linux_custom \ + -initrd initrd.cpio.gz \ + -append 'root=/dev/sda console=ttyS0' \ + -virtfs local,path=./pkg_store,mount_tag=host0,readonly=on,security_model=passthrough,id=host0 \ + -append 'root=/dev/sda console=ttyS0'" + +run_tmux() { + tmux new-window \ + -n "qemu-system" \ + sh -c "$QEMU_CMD" +} + +case "$1" in + t) run_tmux ;; + *) sh -c "$QEMU_CMD" ;; +esac |
