aboutsummaryrefslogtreecommitdiff
diff options
from:
to:
context:
space:
mode:
-rwxr-xr-xconfig.sh7
-rw-r--r--teams/cloud/container.xml6
2 files changed, 13 insertions, 0 deletions
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.
diff --git a/teams/cloud/container.xml b/teams/cloud/container.xml
index fbd14ca..ee329cf 100644
--- a/teams/cloud/container.xml
+++ b/teams/cloud/container.xml
@@ -295,4 +295,10 @@
<package name="systemd-resolved"/>
<package name="xkeyboard-config"/>
</packages>
+ <packages type="bootstrap" profiles="Container-Base-Generic-Minimal,Container-Base-Generic,Container-Toolbox">
+ <package name="systemd-standalone-tmpfiles"/>
+ </packages>
+ <packages type="uninstall" profiles="Container-Base-Generic-Minimal,Container-Base-Generic,Container-Toolbox">
+ <package name="systemd-standalone-tmpfiles"/>
+ </packages>
</image>