Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions usr/lib/live-installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,9 @@ def write_fstab(self, path="/target/etc/fstab"):
if "ext" in fs:
fstab_mount_options = "rw,errors=remount-ro"
elif fs == "btrfs" and partition.mount_as == "/":
fstab_mount_options = "defaults,subvol=@"
fstab_mount_options = "subvol=@,defaults,noatime,compress=zstd:1,discard=async"
Comment thread
anaximeno marked this conversation as resolved.
Outdated
elif fs == "btrfs" and partition.mount_as == "/home":
fstab_mount_options = "defaults,subvol=@home"
fstab_mount_options = "subvol=@home,defaults,noatime,compress=zstd:1,discard=async"
else:
fstab_mount_options = "defaults"

Expand All @@ -606,7 +606,7 @@ def write_fstab(self, path="/target/etc/fstab"):

if fs == "btrfs" and partition.mount_as == "/" and not self.setup_has_dedicated_home():
# Special case, if / is btrfs and there is no dedicated /home, add the @home subvolume to /
fstab.write("%s\t%s\t%s\t%s\t%s\t%s\n" % (partition_uuid, "/home", "btrfs", "defaults,subvol=@home", "0", "0"))
fstab.write("%s\t%s\t%s\t%s\t%s\t%s\n" % (partition_uuid, "/home", "btrfs", "subvol=@home,defaults,noatime,compress=zstd:1,discard=async", "0", "0"))
fstab.close()

def write_mtab(self, fstab="/target/etc/fstab", mtab="/target/etc/mtab"):
Expand Down