summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/otg/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-04-10 08:08:05 +0300
committerMaxim Devaev <[email protected]>2022-04-10 08:08:05 +0300
commit7c44d733a91cfe09badebf6d2e8ea96a551fbada (patch)
tree2ec3118c41aeab949ee8a56e3b5916d87ff790d0 /kvmd/plugins/msd/otg/__init__.py
parentc92d17dea21fbcf461716331ea7fd3500476edb9 (diff)
aiohelpers
Diffstat (limited to 'kvmd/plugins/msd/otg/__init__.py')
-rw-r--r--kvmd/plugins/msd/otg/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py
index dcf70557..0b81391d 100644
--- a/kvmd/plugins/msd/otg/__init__.py
+++ b/kvmd/plugins/msd/otg/__init__.py
@@ -46,6 +46,7 @@ from ....validators.os import valid_printable_filename
from ....validators.os import valid_command
from .... import aiotools
+from .... import aiohelpers
from .. import MsdError
from .. import MsdIsBusyError
@@ -59,7 +60,6 @@ from .. import BaseMsd
from .. import MsdImageWriter
from . import fs
-from . import helpers
from .drive import Drive
@@ -538,4 +538,5 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
# =====
async def __remount_storage(self, rw: bool) -> None:
- await helpers.remount_storage(self.__remount_cmd, rw)
+ if not (await aiohelpers.remount("MSD", self.__remount_cmd, rw)):
+ raise MsdError("Can't execute remount helper")