From 57998918756d60cacbf6d8ef039dad18ce5dca00 Mon Sep 17 00:00:00 2001 From: "Gerd v. Egidy" Date: Sun, 12 Dec 2021 11:33:21 +0100 Subject: [PATCH] disable the ldconfig run as it can unnecessarily slow down boot The ldconfig service ("Rebuild Dynamic Linker Cache") updates /etc/ld.so.cache when it is older than some preconfigured age. This increases boot time, especially when airootfs is on a slower media, like a DVD-ROM drive or NFS. Since System Rescue doesn't change over time, keeping the original file from release is fine. --- airootfs/root/customize_airootfs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airootfs/root/customize_airootfs.sh b/airootfs/root/customize_airootfs.sh index 5d76f1e..a76c000 100755 --- a/airootfs/root/customize_airootfs.sh +++ b/airootfs/root/customize_airootfs.sh @@ -45,6 +45,9 @@ systemctl mask shadow.timer systemctl mask man-db.timer systemctl mask updatedb.timer +# ldconfig ("Rebuild Dynamic Linker Cache") unnecessarily slows down boot some time after the release +systemctl mask ldconfig.service + # Provide additional commands (using busybox instead of binutils to save space) ln -sf /usr/bin/busybox /usr/local/bin/ar ln -sf /usr/bin/busybox /usr/local/bin/strings