From b3760e73451c505fd8fee19d2aa88971580fb40d Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 13 Dec 2024 18:47:51 -0600 Subject: [PATCH] build-rootfs: Run ldconfig via QEMU Using the host's `ldconfig` doesn't work, as it only considers libraries for the same machine type as itself. THus, we have to execute the target's copy, which means running it via QEMU userspace emulation. --- build-rootfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-rootfs.sh b/build-rootfs.sh index 4f5a5b3..48a565b 100755 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -76,7 +76,7 @@ if [ -f /mnt/gentoo/etc/udev/hwdb.bin ]; then mv /mnt/gentoo/etc/udev/hwdb.bin /mnt/gentoo/usr/lib/udev/ fi -ldconfig -r /mnt/gentoo +qemu-${target%%-*} /mnt/gentoo/usr/sbin/ldconfig -r /mnt/gentoo rm -f /mnt/gentoo/lib/tmpfiles.d/provision.conf systemd-tmpfiles --root=/mnt/gentoo -E --exclude-prefix=/var --create