Move ldconfig back to Dockerfile since its a noop in fakechroot

strace: execve("/bin/true", ["ldconfig"], 0x563fc29f9fa0 /* 101 vars */) = 0
This commit is contained in:
Justin Kromlinger 2020-11-07 17:52:07 +01:00
parent 52c1613c20
commit f875ac9565
No known key found for this signature in database
GPG Key ID: 69EF6D9E49A64EB8
2 changed files with 2 additions and 1 deletions

View File

@ -20,5 +20,7 @@ RUN ROOTFS="$(curl -sOJL --continue-at - -w "%{filename_effective}" TEMPLATE_ROO
FROM scratch AS root
COPY --from=verify /rootfs/ /
RUN ldconfig
ENV LANG=en_US.UTF-8
CMD ["/usr/bin/bash"]

View File

@ -14,7 +14,6 @@ define rootfs
--config $(BUILDDIR)/etc/pacman.conf \
--noscriptlet \
--hookdir $(BUILDDIR)/alpm-hooks/usr/share/libalpm/hooks/ $(2)
fakechroot -- fakeroot -- chroot $(BUILDDIR) ldconfig
fakechroot -- fakeroot -- chroot $(BUILDDIR) update-ca-trust
fakechroot -- fakeroot -- chroot $(BUILDDIR) locale-gen
fakechroot -- fakeroot -- chroot $(BUILDDIR) sh -c 'ls usr/lib/sysusers.d/*.conf | /usr/share/libalpm/scripts/systemd-hook sysusers'