From 0996328b7cec56717ea8c9fd905095b70facf38c Mon Sep 17 00:00:00 2001 From: jackyzy823 Date: Thu, 27 Nov 2025 22:02:13 +0800 Subject: teams/cloud/container: create dotfiles under root folder with systemd-tmpfiles Since`rootfiles` now uses systemd-tmpfiles to install dotfiles under root folder instead of copying. --- config.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.sh') diff --git a/config.sh b/config.sh index 2df6abf..67f2630 100755 --- a/config.sh +++ b/config.sh @@ -219,6 +219,13 @@ chmod 600 /root/.ssh/authorized_keys chown -R root:root /root/.ssh fi +# https://bugzilla.redhat.com/show_bug.cgi?id=2356069 +if [[ "$kiwi_profiles" == *"Container"* ]] && [[ "$kiwi_profiles" != *"Init"* ]]; then + if [[ -f /usr/lib/tmpfiles.d/rootfiles.conf ]]; then + systemd-tmpfiles --create /usr/lib/tmpfiles.d/rootfiles.conf + fi +fi + if [[ "$kiwi_profiles" == *"Container"* ]] || [[ "$kiwi_profiles" == *"FEX"* ]]; then # Set install langs macro so that new rpms that get installed will # only install langs that we limit it to. -- cgit v1.3.1+13