From 05f2d9c08048c1f9f6ad6856ec35e00b96420c5b Mon Sep 17 00:00:00 2001 From: cvlc12 Date: Tue, 22 Apr 2025 22:36:12 +0200 Subject: [PATCH] homectl: Use 'user_subvol_rm_allowed' for btrfs by default. --- man/homectl.xml | 2 +- src/home/homework-mount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/man/homectl.xml b/man/homectl.xml index 5c37f1bda9..37a3a05b87 100644 --- a/man/homectl.xml +++ b/man/homectl.xml @@ -971,7 +971,7 @@ Takes a string containing additional mount options to use when mounting the LUKS volume. If specified, this string will be appended to the default, built-in mount - options. + options. Defaults to "compress=zstd:1,noacl,user_subvol_rm_allowed". diff --git a/src/home/homework-mount.c b/src/home/homework-mount.c index 7f027895c8..1ba732aa13 100644 --- a/src/home/homework-mount.c +++ b/src/home/homework-mount.c @@ -37,7 +37,7 @@ static const char *mount_options_for_fstype(const char *fstype) { if (streq(fstype, "xfs")) return "noquota"; if (streq(fstype, "btrfs")) - return "noacl,compress=zstd:1"; + return "compress=zstd:1,noacl,user_subvol_rm_allowed"; return NULL; }