Skip to content

Commit

Permalink
boot-qemu.py: Add another location for virtiofsd
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Jul 12, 2023
1 parent 715bfba commit eac0333
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions boot-qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,11 @@ def _prepare_for_shared_folder(self):
# https://lore.kernel.org/[email protected]/
#
# The standalone Rust implementation is preferred now, which should be
# available in PATH. If it is not available, see if there is a C
# implementation available in QEMU's prefix.
if not (virtiofsd := shutil.which('virtiofsd')):
# available in PATH or at '/usr/lib/virtiofsd', in the case of Arch
# Linux. If it is not available, see if there is a C implementation
# available in QEMU's prefix.
if not ((virtiofsd := shutil.which('virtiofsd')) or
(virtiofsd := Path('/usr/lib/virtiofsd')).exists()):
utils.yellow(
'Could not find Rust implementation of virtiofsd (https://gitlab.com/virtio-fs/virtiofsd), searching for old C implementation...'
)
Expand Down

0 comments on commit eac0333

Please sign in to comment.