From 3c04ec5664a26c32be947f37096edab228fd5e53 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 10 Dec 2024 17:47:02 +0100 Subject: [PATCH] GRMLBASE/15-initsetup: mask ldconfig.service ldconfig.service is mostly useful if the OS image can change its composition during boot. This is not the case for us. As ldconfig.service can be quite slow, lets mask it. --- etc/grml/fai/config/scripts/GRMLBASE/15-initsetup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/15-initsetup b/etc/grml/fai/config/scripts/GRMLBASE/15-initsetup index 05374023..5ca32264 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/15-initsetup +++ b/etc/grml/fai/config/scripts/GRMLBASE/15-initsetup @@ -26,6 +26,11 @@ systemd_setup() { $ROOTCMD systemctl preset-all $ROOTCMD systemctl set-default grml-boot.target + + # ldconfig.service updates the dynamic linker cache. This is not really + # useful on a live OS image, where the installed packages do not change + # on startup. As this is quite costly, disable it. + $ROOTCMD systemctl mask ldconfig.service } systemd_setup