Archlinux mkinitcpio hook to enable the dropbear daemon in early userspace
Find a file
Will Owens 786bedb245 Add a suggestion to convert keyfiles to PEM format
This commit adds additional output to the following Error
message informing the user they need to convert their existing
ssh_host key files to PEM format.

```
Error: Unsupported OpenSSH key type
Error reading key from '/etc/ssh/ssh_host_rsa_key'
Error: Unsupported OpenSSH key type
Error reading key from '/etc/ssh/ssh_host_ecdsa_key'
```

I found the suggestion to convert the existing keys to PEM format in
an issue[1] for systemd-tool and I've converted the suggestion to an
echo statement during a failure to convert the keys when running
mkinitcpio when dropbear hook is enabled.

Also this change stops swallowing this error. The new behavior is,
if dropbear convert was unable to convert any existing `ssh_host`
key files then `generate_keys` will be run. This prevents an initramfs
being generated without any host keyfiles. This is the same behavior
that occurs when NO existing `ssh_host` keyfiles exist.

[1] https://github.com/random-archer/mkinitcpio-systemd-tool/issues/83
2021-09-26 16:15:32 -04:00
dropbear_hook * Removed dropbear_initrd_encrypt leftovers. They were conflicting with mkinitcpio-utils and mkinitcpio-netconf. 2015-07-28 00:26:31 -03:00
dropbear_install Add a suggestion to convert keyfiles to PEM format 2021-09-26 16:15:32 -04:00
LICENSE Initial commit 2015-07-13 16:21:03 -03:00
README.md Initial commit 2015-07-13 16:21:03 -03:00

mkinitcpio-dropbear

Archlinux mkinitcpio hook to enable the dropbear daemon in early userspace