Skip to content

Commit

Permalink
GRMLBASE/15-initsetup: mask ldconfig.service
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zeha committed Dec 10, 2024
1 parent 43fd61f commit 3c04ec5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etc/grml/fai/config/scripts/GRMLBASE/15-initsetup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c04ec5

Please sign in to comment.