Compare commits

2 Commits

Author SHA1 Message Date
b43e8319f4 systemd: sshd: Disable ssh-keygen
The default _sshd.service_ unit runs `ssh-keygen -A` in `ExecStartPre`,
to ensure host keys exist before starting the SSH daemon.
Unfortunately, this tool does _not_ respect the `HostKey` settings in
`sshd_config`, and unconditionally tries to create the key files in
`/etc/ssh`.  Since this directory is not writable, the command fails,
preventing the SSH daemon from starting.
2025-01-02 12:57:31 -06:00
f914df7866 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.
2025-01-02 12:57:14 -06:00
2 changed files with 4 additions and 1 deletions

View File

@@ -90,7 +90,8 @@ qemu-${target%%-*} \
-f /mnt/gentoo/etc/ld.so.conf -f /mnt/gentoo/etc/ld.so.conf
if [ -d /mnt/gentoo/lib64/security ]; then if [ -d /mnt/gentoo/lib64/security ]; then
mv /mnt/gentoo/lib64/security/pam_*.so /mnt/gentoo/lib/security/ find /mnt/gentoo/lib64/security -name 'pam_*.so' \
-exec mv -t /mnt/gentoo/lib/security {} +
fi fi
rm -f /mnt/gentoo/lib/tmpfiles.d/provision.conf rm -f /mnt/gentoo/lib/tmpfiles.d/provision.conf

View File

@@ -0,0 +1,2 @@
[Service]
ExecStartPre=