bin/pathof : ajout possibilité de récupérer le chemin d'un dossier partagé

This commit is contained in:
Ahurac 2024-03-11 22:24:34 +01:00
parent 73aa42a7f8
commit b20e52014d
2 changed files with 6 additions and 1 deletions

View file

@ -23,6 +23,9 @@ case "$1" in
spice)
basedir=sockets/spice
;;
shared)
basedir=shared
;;
*)
false
;;

View file

@ -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
);