dracut: enforce PEM format for dropbearconvert.

Otherwise the keys are not readable

closes #9085
This commit is contained in:
Rich G 2019-02-22 16:43:04 -05:00 committed by maxice8
parent d06a235952
commit 76077a148b
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,13 @@
diff --git modules/60crypt-ssh/module-setup.sh modules/60crypt-ssh/module-setup.sh
index c3b6584..80e7dbe 100644
--- modules/60crypt-ssh/module-setup.sh
+++ modules/60crypt-ssh/module-setup.sh
@@ -40,7 +40,7 @@ install() {
case ${state} in
GENERATE )
- ssh-keygen -t $keyType -f $osshKey -q -N "" || {
+ ssh-keygen -t $keyType -f $osshKey -q -N "" -m PEM || {
derror "SSH ${msgKeyType} key creation failed"
rm -rf "$tmpDir"
return 1

View file

@ -1,12 +1,12 @@
# Template file for 'dracut-crypt-ssh'
pkgname=dracut-crypt-ssh
version=1.0.7
revision=2
revision=3
build_style=gnu-configure
hostmakedepends="dracut"
makedepends="libblkid-devel"
depends="dracut-network dropbear openssh"
short_desc="A new initramfs infrastructure - enter LUKS passphrase remotely"
short_desc="New initramfs infrastructure - enter LUKS passphrase remotely"
maintainer="tastytea <tastytea@tastytea.de>"
license="GPL-2.0-or-later"
homepage="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"