Skip to content

Commit 32dca74

Browse files
committed
add detected library paths to the ld.so.conf for the initrd
Signed-off-by: Zen <[email protected]>
1 parent 955b6ca commit 32dca74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ugrd/base/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,9 @@ def autodetect_musl(self) -> None:
352352

353353
@unset("musl_libc", "Skipping ld.so.cache regeneration, musl_libc is enabled.", log_level=30)
354354
def regen_ld_so_cache(self) -> None:
355-
"""Regenerates the ld.so.cache file in the build dir"""
355+
"""Regenerates the ld.so.cache file in the build dir. Uses defined library paths to generate the config"""
356356
self.logger.info("Regenerating ld.so.cache")
357+
self._write("etc/ld.so.conf", self["library_paths"])
357358
build_path = self._get_build_path("/")
358359
self._run(["ldconfig", "-r", str(build_path)])
359360
self["check_included_or_mounted"] = "etc/ld.so.cache"

0 commit comments

Comments
 (0)