From a4f3ee79e63db6cefb063593d66f43b3a3fda67c Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 7 Nov 2022 17:00:35 +0300 Subject: find pst partition by fstab --- kvmd/apps/pst/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kvmd/apps/pst') diff --git a/kvmd/apps/pst/server.py b/kvmd/apps/pst/server.py index 1df26f61..8ea69b80 100644 --- a/kvmd/apps/pst/server.py +++ b/kvmd/apps/pst/server.py @@ -31,6 +31,7 @@ from ...logging import get_logger from ... import tools from ... import aiotools from ... import aiohelpers +from ... import fstab from ...htserver import exposed_http from ...htserver import exposed_ws @@ -42,7 +43,6 @@ from ...htserver import HttpServer class PstServer(HttpServer): # pylint: disable=too-many-arguments,too-many-instance-attributes def __init__( # pylint: disable=too-many-arguments,too-many-locals self, - storage_path: str, ro_retries_delay: float, ro_cleanup_delay: float, remount_cmd: list[str], @@ -50,7 +50,7 @@ class PstServer(HttpServer): # pylint: disable=too-many-arguments,too-many-inst super().__init__() - self.__data_path = os.path.join(storage_path, "data") + self.__data_path = os.path.join(fstab.find_partition(fstab.PartitionType.PST).root_path, "data") self.__ro_retries_delay = ro_retries_delay self.__ro_cleanup_delay = ro_cleanup_delay self.__remount_cmd = remount_cmd -- cgit v1.2.3