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.
gentoo
Dustin 2023-03-09 11:08:54 -06:00
parent 1a1a64a16d
commit ec34ffe7d2
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ fi
rm -f /mnt/gentoo/lib/tmpfiles.d/provision.conf 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 systemctl preset-all --root=/mnt/gentoo
rm -f /mnt/gentoo/lib/systemd/system/sysinit.target.wants/ldconfig.service rm -f /mnt/gentoo/lib/systemd/system/sysinit.target.wants/ldconfig.service