summaryrefslogtreecommitdiff
path: root/kvmd/fstab.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-07 16:17:13 +0300
committerMaxim Devaev <[email protected]>2022-11-07 16:17:13 +0300
commit29bd1e2f6f026464ff6e9151631f326cf3486981 (patch)
treea6e484d08daa7fde58a9c4ef425906baf8974d4f /kvmd/fstab.py
parent68b3dd4fd0801858328c16d3ae56215c76f25873 (diff)
static env
Diffstat (limited to 'kvmd/fstab.py')
-rw-r--r--kvmd/fstab.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd/fstab.py b/kvmd/fstab.py
index 0dfb8d52..bd3a593c 100644
--- a/kvmd/fstab.py
+++ b/kvmd/fstab.py
@@ -23,6 +23,8 @@
import re
import dataclasses
+from . import env
+
# =====
class PartitionType:
@@ -43,7 +45,7 @@ class Partition:
def find_partition(part_type: str) -> Partition:
assert part_type in PartitionType.ALL
- fstab_path = "/etc/fstab"
+ fstab_path = f"{env.ETC_PREFIX}/etc/fstab"
with open(fstab_path) as file:
for line in file.read().split("\n"):
line = line.strip()