summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/otg/drive.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/msd/otg/drive.py')
-rw-r--r--kvmd/plugins/msd/otg/drive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/msd/otg/drive.py b/kvmd/plugins/msd/otg/drive.py
index e6457527..ff91afcf 100644
--- a/kvmd/plugins/msd/otg/drive.py
+++ b/kvmd/plugins/msd/otg/drive.py
@@ -34,9 +34,9 @@ class MsdDriveLockedError(MsdOperationError):
# =====
class Drive:
- def __init__(self, gadget: str, instance: int, lun: int) -> None:
+ def __init__(self, prefix: str, gadget: str, instance: int, lun: int) -> None:
self.__path = os.path.join(
- "/sys/kernel/config/usb_gadget",
+ f"{prefix}/sys/kernel/config/usb_gadget",
gadget,
f"functions/mass_storage.usb{instance}/lun.{lun}",
)