build-rootfs: Avoid spurious boot errors
The *ldconfig.service* fails because `/etc` is not writable and thus `/etc/ld.so.cache` cannot be generated. The files specified in the `provision.d` *tmpfiles.d(5)* configuration are unnecessary, and many of them cannot be created at runtime because the root filesystem is immutable.master
parent
fef78afa31
commit
f32c6d37a4
|
@ -65,7 +65,10 @@ if [ -f /mnt/gentoo/etc/udev/hwdb.bin ]; then
|
|||
mv /mnt/gentoo/etc/udev/hwdb.bin /mnt/gentoo/usr/lib/udev/
|
||||
fi
|
||||
|
||||
rm -f /mnt/gentoo/lib/tmpfiles.d/provision.conf
|
||||
|
||||
systemctl preset-all --root=/mnt/gentoo
|
||||
rm -f /mnt/gentoo/lib/systemd/system/sysinit.target.wants/ldconfig.service
|
||||
|
||||
systemd-sysusers --root=/mnt/gentoo
|
||||
if grep -q '^root:.*/bin/bash$' /mnt/gentoo/etc/passwd; then
|
||||
|
|
Loading…
Reference in New Issue