From f914df7866e88006c35425a6bdb7db145db7453b Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 30 Dec 2024 17:16:40 -0600 Subject: [PATCH] build-rootfs: Relocate misplaced PAM libs Some packages, notably _systemd_, place their PAM modules in `/usr/lib64/security` instead of `/usr/lib/security`. PAM only seems to look in the latter location, though, so anything in the former needs to be moved in order to be used. --- build-rootfs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-rootfs.sh b/build-rootfs.sh index e377363..5852cdb 100755 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -89,6 +89,11 @@ qemu-${target%%-*} \ -r /mnt/gentoo \ -f /mnt/gentoo/etc/ld.so.conf +if [ -d /mnt/gentoo/lib64/security ]; then + find /mnt/gentoo/lib64/security -name 'pam_*.so' \ + -exec mv -t /mnt/gentoo/lib/security {} + +fi + rm -f /mnt/gentoo/lib/tmpfiles.d/provision.conf systemd-tmpfiles --root=/mnt/gentoo -E --exclude-prefix=/var --create