summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/otg/drive.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-11-07 06:42:48 +0300
committerDevaev Maxim <[email protected]>2019-11-07 06:42:48 +0300
commit8abe4b1ac9d341eec17d211328b9f3cd9b59fa0a (patch)
tree87d08459405e48edd91c09662d440edc378de9a2 /kvmd/plugins/msd/otg/drive.py
parent10f8c2b3352c951549cc1249d6b24789fb94d688 (diff)
v2 testing
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}",
)