diff options
| author | wrzosik <mia@miangie.dev> | 2026-01-24 23:21:49 +0100 |
|---|---|---|
| committer | wrzosik <mia@miangie.dev> | 2026-01-24 23:21:49 +0100 |
| commit | 2fe1d98ce20bb8a44742d0c7af524bb8bc5d7504 (patch) | |
| tree | 417d205433f33c2533603572378342e2307c4aa7 /experiments/04_20251216_pkg_store/run_qemu.sh | |
| parent | 73ff7de47a640f32e75e49c01d1b1ea333014b61 (diff) | |
First tries with overlayfs, 9p and virtio. First kernel compilled with custom
configuration
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 |
