8000 Merge branch 'pr-36' · archlinux/arch-install-scripts@4802e11 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4802e11

Browse files
committed
Merge branch 'pr-36'
2 parents 4457e31 + added92 commit 4802e11

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

genfstab.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ optstring_apply_quirks() {
5858
fi
5959

6060
case $fstype in
61+
btrfs)
62+
# Having only one of subvol= and subvolid= is enough for mounting a btrfs subvolume
63+
# And having subvolid= set prevents things like 'snapper rollback' to work, as it
64+
# updates the subvolume in-place, leaving subvol= unchanged with a different subvolid.
65+
if optstring_has_option "$varname" subvol; then
66+
optstring_remove_option "$varname" subvolid
67+
fi
68+
;;
6169
f2fs)
6270
# These are Kconfig options for f2fs. Kernels supporting the options will
6371
# only provide the negative versions of these (e.g. noacl), and vice versa

0 commit comments

Comments
 (0)
0