From 289827ee00fd656374bdfb8216f4931c0bfe8394 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 21 Mar 2023 19:30:02 -0500 Subject: [PATCH] Enable systemd-tmpfiles to create subvols By default, `systemd-tmpfiles` will create normal directories instead of Btrfs subvolumes unless `/` is already a subvolume. According to [Lennart][0], this has to do with subvolumes being too "heavy-weight," whatever that means. Fortunately, we can override this nonsense with an environment variable. [0]: https://github.com/systemd/systemd/pull/1915 --- .../system/systemd-tmpfiles-setup.service.d/force-subvol.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 overlay/usr/lib/systemd/system/systemd-tmpfiles-setup.service.d/force-subvol.conf diff --git a/overlay/usr/lib/systemd/system/systemd-tmpfiles-setup.service.d/force-subvol.conf b/overlay/usr/lib/systemd/system/systemd-tmpfiles-setup.service.d/force-subvol.conf new file mode 100644 index 0000000..0aba01f --- /dev/null +++ b/overlay/usr/lib/systemd/system/systemd-tmpfiles-setup.service.d/force-subvol.conf @@ -0,0 +1,2 @@ +[Service] +Environment=SYSTEMD_TMPFILES_FORCE_SUBVOL=1