Commit graph

8 commits

Author SHA1 Message Date
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
Your Name
470a472eab removed dss key generation 2018-11-14 19:49:16 +01:00
Giancarlo Razzolini
59ba2c449c * Got rid of the TMPDIR juggling by using BUILDROOT directly. 2015-08-11 16:24:00 -03:00
Giancarlo Razzolini
e646f1e99f * Corrected the reference to mkinitcpio-utils in the hook help. 2015-08-05 16:45:25 -03:00
Giancarlo Razzolini
b4d7a8f1ec * Removed dropbear_initrd_encrypt leftovers. They were conflicting with mkinitcpio-utils and mkinitcpio-netconf. 2015-07-28 00:26:31 -03:00
Giancarlo Razzolini
3842d352b2 * Final changes on the hook message. 2015-07-14 23:51:47 -03:00
Giancarlo Razzolini
2a8d3ea51b * Added killall again to the binaries that are installed and required. 2015-07-13 17:48:32 -03:00
Giancarlo Razzolini
80bc0c0479 * Initial release. 2015-07-13 17:43:43 -03:00