aboutsummaryrefslogtreecommitdiff
path: root/config.sh
diff options
from:
to:
context:
space:
mode:
authorGravatar Neal Gompa <ngompa@fedoraproject.org> 2025-03-20 18:26:00 -0400
committerGravatar Neal Gompa <ngompa@fedoraproject.org> 2025-03-20 18:26:00 -0400
commitd7316ab54385a248ed453ab2b6067d81becc7ce4 (patch)
tree935037a3642229c1aa745e8dd9c52adfef6e927a /config.sh
parentf0a7ae8da38c662c71ca38c5db347b62ff2c36c0 (diff)
downloadkiwi-descriptions-d7316ab54385a248ed453ab2b6067d81becc7ce4.tar.gz
kiwi-descriptions-d7316ab54385a248ed453ab2b6067d81becc7ce4.zip
config.sh: Inhibit ldconfig cache generation unit
The ldconfig cache generator runs on first boot and attempts to read the whole image into memory, which eats gigabytes of RAM and slows the boot down by half a minute. This is unnecessary for images being booted unmodified. Thus, create the necessary dot files to inhibit their runs.
Diffstat (limited to 'config.sh')
-rwxr-xr-xconfig.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.sh b/config.sh
index 458e434..65ce889 100755
--- a/config.sh
+++ b/config.sh
@@ -380,4 +380,10 @@ if [[ "$kiwi_profiles" == *"FEX"* ]]; then
rm /usr/bin/rm
fi
+#======================================
+# Finalization steps
+#--------------------------------------
+# Inhibit the ldconfig cache generation unit, see rhbz2348669
+touch -r "/usr" "/etc/.updated" "/var/.updated"
+
exit 0