From 2fe1d98ce20bb8a44742d0c7af524bb8bc5d7504 Mon Sep 17 00:00:00 2001 From: wrzosik Date: Sat, 24 Jan 2026 23:21:49 +0100 Subject: experiment: building rootfs from package store (basics) First tries with overlayfs, 9p and virtio. First kernel compilled with custom configuration --- experiments/04_20251216_pkg_store/run_qemu.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 experiments/04_20251216_pkg_store/run_qemu.sh (limited to 'experiments/04_20251216_pkg_store/run_qemu.sh') 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 -- cgit v1.2.3