From 7c65f6105663cfb067b0aba559c49a2c8529ef54 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sat, 7 Mar 2020 23:37:17 +0100 Subject: [PATCH] make_mirror.sh: run ldconfig in case mmdebstrap chose fakechroot mode --- make_mirror.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make_mirror.sh b/make_mirror.sh index 8db8a81..224fe45 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -527,12 +527,17 @@ END END #libguestfs-test-tool #export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 + # + # In case the rootfs was prepared in fakechroot mode, ldconfig has to + # run to populate /etc/ld.so.cache or otherwise fakechroot tests will + # fail to run. guestfish -N "$tmpdir/debian-$DEFAULT_DIST.img"=disk:3G -- \ part-disk /dev/sda mbr : \ part-set-bootable /dev/sda 1 true : \ mkfs ext2 /dev/sda1 : \ mount /dev/sda1 / : \ tar-in "$tmpdir/debian-chroot.tar" / : \ + command /sbin/ldconfig : \ extlinux / : \ copy-in "$tmpdir/extlinux.conf" / : \ mkdir-p /etc/systemd/system/multi-user.target.wants : \