From d7316ab54385a248ed453ab2b6067d81becc7ce4 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Thu, 20 Mar 2025 18:26:00 -0400 Subject: 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. --- config.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.sh') 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 -- cgit v1.3.1+13