summaryrefslogtreecommitdiff
path: root/kvmd/fstab.py
diff options
context:
space:
mode:
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 4ab3163c..5a603d06 100644
--- a/kvmd/fstab.py
+++ b/kvmd/fstab.py
@@ -33,6 +33,7 @@ class Partition:
mount_path: str
root_path: str
user: str
+ group: str
# =====
@@ -60,12 +61,13 @@ def _find_partitions(part_type: str, single: bool) -> list[Partition]:
if line and not line.startswith("#"):
fields = line.split()
if len(fields) == 6:
- options = dict(re.findall(r"X-kvmd\.%s-(root|user)(?:=([^,]+))?" % (part_type), fields[3]))
+ options = dict(re.findall(r"X-kvmd\.%s-(root|user|group)(?:=([^,]+))?" % (part_type), fields[3]))
if options:
parts.append(Partition(
mount_path=os.path.normpath(fields[1]),
root_path=os.path.normpath(options.get("root", "") or fields[1]),
user=options.get("user", ""),
+ group=options.get("group", ""),
))
if single:
break