From 554063e1f4e316a6d3087a27076e0c6d5a34fca1 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 22 Dec 2024 17:01:49 -0600 Subject: [PATCH] build-rootfs: Pass config path to ldconfig `ldconfig` has started complaining that it needs a configuration file when using the `-r` argument: > /mnt/gentoo/usr/sbin/ldconfig: need absolute file name for > configuration file when using -r --- build-rootfs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-rootfs.sh b/build-rootfs.sh index 7d0acf9..6a9d1f3 100755 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -76,7 +76,10 @@ if [ -f /mnt/gentoo/etc/udev/hwdb.bin ]; then mv /mnt/gentoo/etc/udev/hwdb.bin /mnt/gentoo/usr/lib/udev/ fi -qemu-${target%%-*} /mnt/gentoo/usr/sbin/ldconfig -r /mnt/gentoo +qemu-${target%%-*} \ +/mnt/gentoo/usr/sbin/ldconfig \ + -r /mnt/gentoo \ + -f /mnt/gentoo/etc/ld.so.conf rm -f /mnt/gentoo/lib/tmpfiles.d/provision.conf systemd-tmpfiles --root=/mnt/gentoo -E --exclude-prefix=/var --create