diff --git a/qemu/bin/pathof b/qemu/bin/pathof index dbed3d5..14138e2 100755 --- a/qemu/bin/pathof +++ b/qemu/bin/pathof @@ -23,6 +23,9 @@ case "$1" in spice) basedir=sockets/spice ;; + shared) + basedir=shared + ;; *) false ;; diff --git a/qemu/launchers/9p b/qemu/launchers/9p index c5078d8..d5f8b43 100755 --- a/qemu/launchers/9p +++ b/qemu/launchers/9p @@ -11,9 +11,11 @@ if (defined $ENV{'QEMUSH_BASE'}) { my $base = shift @launchers_chain; $ENV{'QEMUSH_BASE'} = join ",", @launchers_chain; +chomp(my $shared_folder = `pathof shared`); + my @command = ( $base, - "-fsdev", "local,security_model=passthrough,id=fsdev0,path=" . $ENV{'HOME'} . "/shared/" . $ENV{'QEMUSH_NAME'}, + "-fsdev", "local,security_model=passthrough,id=fsdev0,path=${shared_folder}", "-device", "virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=shared", @ARGV );