iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor fixes
[distro-setup]
/
mount-latest-subvol
diff --git
a/mount-latest-subvol
b/mount-latest-subvol
index c66eebc1bd0a97d9cb8513cbedc2a4d4b9faf8ae..eb682f4eebf54212768eb03c0c0a07e4f6114879 100644
(file)
--- a/
mount-latest-subvol
+++ b/
mount-latest-subvol
@@
-271,8
+271,10
@@
fi
fa=(/mnt/o/btrbk/o.*); f=${fa[0]}
if [[ -e $f ]]; then
if [[ $o_dev != "$root_dev" ]]; then
fa=(/mnt/o/btrbk/o.*); f=${fa[0]}
if [[ -e $f ]]; then
if [[ $o_dev != "$root_dev" ]]; then
+ # ,compress=zstd regardless of mopts since these are all text files
+ # and it cuts disk use by about half.
fstab <<EOF
fstab <<EOF
-$o_dev /o btrfs noatime,subvol=o$
mopts
0 0
+$o_dev /o btrfs noatime,subvol=o$
{mopts/,compress=zstd/},compress=zstd
0 0
EOF
fi
fstab <<EOF
EOF
fi
fstab <<EOF