Merge pull request #2282 from iam-TJ/issue2281_crypto_keyfile

fstab: do not overwrite partition["mountPoint"]
This commit is contained in:
dalto8 2024-02-08 19:58:15 +00:00 committed by GitHub
commit 60989290e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,7 @@
import os
import re
import copy
import libcalamares
@ -201,7 +202,7 @@ class FstabGenerator(object):
# so all subvolumes here should be safe to add to fstab
btrfs_subvolumes = libcalamares.globalstorage.value("btrfsSubvolumes")
for s in btrfs_subvolumes:
mount_entry = partition
mount_entry = copy.deepcopy(partition)
mount_entry["mountPoint"] = s["mountPoint"]
mount_entry["subvol"] = s["subvolume"]
dct = self.generate_fstab_line_info(mount_entry)