Signed-off-by: Andreas K. Hüttel <dilfri...@gentoo.org> --- targets/support/chroot-functions.sh | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index f3727d06..5bf7b1ca 100755 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -242,6 +242,14 @@ update_env_settings(){ [ -f /tmp/envscript ] && source /tmp/envscript } +update_tmpfiles() { + # if ROOT is unset, make sure it becomes "/" + [ -x /bin/systemd-tmpfiles ] && \ + echo "Setting up tmpfiles in ${ROOT:-/} ..." && \ + /bin/systemd-tmpfiles --remove --create --boot "--root=${ROOT:-/}" \ + --exclude-prefix=/dev --exclude-prefix=/proc --exclude-prefix=/sys +} + die() { echo "$1" exit 1 @@ -324,6 +332,7 @@ run_default_funcs() { if [ "${RUN_DEFAULT_FUNCS}" != "no" ] then update_env_settings + update_tmpfiles setup_myfeatures show_debug fi -- 2.34.1