From ec34ffe7d258663a4f48c6732806f4ed7a94d95e Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 9 Mar 2023 11:08:54 -0600 Subject: [PATCH] build-rootfs: Pre-generate tmpfiles Some *tmpfiles.d(5)* entries specify paths in the immutable root filesystem. These need to be created at build time to prevent *systemd-tmpfiles-setup.service* from failing at runtime. --- build-rootfs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-rootfs.sh b/build-rootfs.sh index 6976606..7c2f6a8 100755 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -67,6 +67,8 @@ fi rm -f /mnt/gentoo/lib/tmpfiles.d/provision.conf +systemd-tmpfiles --root=/mnt/gentoo -E --exclude-prefix=/var --create + systemctl preset-all --root=/mnt/gentoo rm -f /mnt/gentoo/lib/systemd/system/sysinit.target.wants/ldconfig.service