]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homectl: Use 'user_subvol_rm_allowed' for btrfs by default.
authorcvlc12 <cvlc12@outlook.fr>
Tue, 22 Apr 2025 20:36:12 +0000 (22:36 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 23 Apr 2025 12:45:18 +0000 (14:45 +0200)
man/homectl.xml
src/home/homework-mount.c

index 5c37f1bda96b5b3d9695f0fa7f14c41a989e59e8..37a3a05b87ba327e451023602901bbee9d27af71 100644 (file)
 
         <listitem><para>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.</para>
+        options. Defaults to "compress=zstd:1,noacl,user_subvol_rm_allowed".</para>
 
         <xi:include href="version-info.xml" xpointer="v250"/></listitem>
       </varlistentry>
index 7f027895c836a97d8ed1d604226e4d87be02c42e..1ba732aa1396c9b366c2c355d863c22b0aebdb7b 100644 (file)
@@ -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;
 }