Skip to content

Commit 075a077

Browse files
committed
boot-qemu.py: Add another location for virtiofsd
Signed-off-by: Nathan Chancellor <[email protected]>
1 parent 9b69872 commit 075a077

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

boot-qemu.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,11 @@ def _prepare_for_shared_folder(self):
212212
# https://lore.kernel.org/[email protected]/
213213
#
214214
# The standalone Rust implementation is preferred now, which should be
215-
# available in PATH. If it is not available, see if there is a C
216-
# implementation available in QEMU's prefix.
217-
if not (virtiofsd := shutil.which('virtiofsd')):
215+
# available in PATH or at '/usr/lib/virtiofsd', in the case of Arch
216+
# Linux. If it is not available, see if there is a C implementation
217+
# available in QEMU's prefix.
218+
if not ((virtiofsd := shutil.which('virtiofsd')) or
219+
(virtiofsd := Path('/usr/lib/virtiofsd')).exists()):
218220
utils.yellow(
219221
'Could not find Rust implementation of virtiofsd (https://gitlab.com/virtio-fs/virtiofsd), searching for old C implementation...'
220222
)

0 commit comments

Comments
 (0)