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.
This commit is contained in:
Neal Gompa
2025-03-20 18:26:00 -04:00
parent f0a7ae8da3
commit d7316ab543
+6
View File
@@ -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