use 9p for direct FS access
authorRalph Ronnquist <rrq@rrq.au>
Tue, 6 Feb 2024 09:26:06 +0000 (20:26 +1100)
committerRalph Ronnquist <rrq@rrq.au>
Tue, 6 Feb 2024 09:26:06 +0000 (20:26 +1100)
run.sh

diff --git a/run.sh b/run.sh
index 3f19b19b8aa7a6313e7dfd1fb4d21f6959777164..e09fe550831a03a762dff9d83808ff2e3a4a0452 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -2,6 +2,7 @@
 
 DISK=disk.raw
 CD=$1
+FS=FS.sqfs
 PCODE=/usr/share/OVMF/OVMF_CODE_4M.fd
 PVARS=/usr/share/OVMF/OVMF_VARS_4M.fd
 cp $PVARS pvars.bin
@@ -15,9 +16,9 @@ QEMU=qemu-system-x86_64
 exec $QEMU -name "${CD%.img}" -m 2G -M pc,accel=kvm -cpu host \
     -drive media=disk,format=raw,file=$CD \
     -drive media=disk,format=raw,file=$DISK \
+    -virtfs local,path=FS,mount_tag=FS,security_model=passthrough \
     -serial mon:stdio -echr 0x1c -vga std \
     $NET
 #    -boot menu=on,splash-time=60000 \
-#    -virtfs local,path=FS,mount_tag=FS,security_model=passthrough \
 #    -kernel FS/vmlinuz -initrd FS/initrd.img \
 #    -append "root=FS rootfstype=9p console=ttyS0"