-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boot-qemu.py: Add another location for virtiofsd
Signed-off-by: Nathan Chancellor <[email protected]>
- Loading branch information
1 parent
715bfba
commit eac0333
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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...' | ||
) | ||
|