Closed cthu1hoo closed 2 years ago
As usual, creating a ticked ensures everything suddenly starts working. Not sure why, but one of those seems to have helped:
rpm-ostree initramfs-etc --force-sync
one more timesshd and related stuff suddenly showed up in the initramfs and it went smoothly from there. sorry for the noise.
I have zero experience with rpm-ostree
.
Dracut-ssh does check for ssh host keys:
The host keys are generated locally at some point - e.g. as part of a post-script action when installing the RPM or when starting sshd the first time.
So perhaps your system didn't have any host keys until you enabled sshd?
As you see from the snippet in that case dracut-sshd should have reported Didn't find any SSH host key!
and fail. Perhaps this error message/failure exit status was eaten by rpm-ostree?
Otherwise your second point could have fixed it, as well - e.g. when the previous commands didn't really rebuilt the initramfs. If that happened it would look like a bug in rpm-ostree.
So perhaps your system didn't have any host keys until you enabled sshd?
This is a likely reason. I don't really have time to test this on a clean VM, but host keys in /etc/ssh are newer than some other files like /etc/dracut-sshd/authorized_keys so it makes sense that they were generated when I started sshd for the first time.
Perhaps I didn't notice the error message or, like you said, maybe ostree ate it. I suppose the bottom line here is - we need to start sshd at least once before enabling dracut-sshd on a fresh reinstall. Hopefully this helps someone else in the future.
Things were fine on 35 Kinoite. I did the usual:
network is going up on boot and I can ping the machine, but ssh is not running. i've tried entering rd.break emergency shell and systemctl doesn't know anything about ssh-related services and journalctl is also blank.
doesn't seem like sshd is even in the initramfs:
how to proceed to debug this further? thanks in advance.