dracut: enforce PEM format for dropbearconvert.
Otherwise the keys are not readable closes #9085
This commit is contained in:
parent
d06a235952
commit
76077a148b
2 changed files with 15 additions and 2 deletions
13
srcpkgs/dracut-crypt-ssh/patches/fix_ssh-keygen.patch
Normal file
13
srcpkgs/dracut-crypt-ssh/patches/fix_ssh-keygen.patch
Normal 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
|
|
@ -1,12 +1,12 @@
|
||||||
# Template file for 'dracut-crypt-ssh'
|
# Template file for 'dracut-crypt-ssh'
|
||||||
pkgname=dracut-crypt-ssh
|
pkgname=dracut-crypt-ssh
|
||||||
version=1.0.7
|
version=1.0.7
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="dracut"
|
hostmakedepends="dracut"
|
||||||
makedepends="libblkid-devel"
|
makedepends="libblkid-devel"
|
||||||
depends="dracut-network dropbear openssh"
|
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>"
|
maintainer="tastytea <tastytea@tastytea.de>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"
|
homepage="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"
|
||||||
|
|
Loading…
Reference in a new issue