You are not logged in.

#1 2023-09-18 19:08:13

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 194

Remove Rebuild Dynamic Linker Cache job from ISO made by Archiso

I'm creating an ISO by using Archiso tool and I see that the process taking more time during the first boot is the "Rebuild Dynamic Linker Cache" and its start job reaches several minutes (around 10 min). It should be used to create "/etc/ld.so.cache".

Is there a way to prevent the start of this job on a created Arch ISO?

Last edited by D3vil0p3r (2023-09-18 19:08:36)

Offline

#2 2023-09-19 10:51:23

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,394

Re: Remove Rebuild Dynamic Linker Cache job from ISO made by Archiso

That is the /usr/lib/systemd/system/ldconfig.service running .

#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Rebuild Dynamic Linker Cache
Documentation=man:ldconfig(8)

ConditionNeedsUpdate=|/etc
ConditionFileNotEmpty=|!/etc/ld.so.cache

DefaultDependencies=no
After=local-fs.target
Before=sysinit.target systemd-update-done.service
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ldconfig -X

Maybe add a copy of your local /etc/ld.so.cache to the iso ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building to complicated ?
Try clean chroot manager by graysky

Offline

#3 2023-09-19 17:49:02

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 194

Re: Remove Rebuild Dynamic Linker Cache job from ISO made by Archiso

I was thinking to add a copy of my /etc/ld.so.cache but, in case I rebuild the ISO by Archiso in order to get the same ISO with the most updated packages, it means that I need to replace ld.so.cache manually with the new one related to this just created updated ISO?

Offline

#4 2023-09-19 18:09:29

loqs
Member
Registered: 2014-03-06
Posts: 17,765

Re: Remove Rebuild Dynamic Linker Cache job from ISO made by Archiso

See ldconfig.8 the -r option.  You could also chroot in then generate it.  You could also try masking ldconfig.service and see how the performance compares.

Your related thread https://bbs.archlinux.org/viewtopic.php?id=288497

Offline

Board footer

Powered by FluxBB