From 3e2519f2930a318ef06ffb8bac01bae6fc1ee218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 13 Jul 2016 14:49:28 +0000 Subject: [PATCH 1/4] mkinitfs: add -K flag to copy host keys to new initramfs this is mainly to copy the developer keys present on build system to the target initramfs. simplifies creating your own initramfs and when your key is not packaged. --- mkinitfs.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mkinitfs.in b/mkinitfs.in index 555bea8..d69ccc5 100755 --- a/mkinitfs.in +++ b/mkinitfs.in @@ -133,6 +133,7 @@ initfs_firmware() { initfs_apk_keys() { mkdir -p "$tmpdir"/etc/apk/keys + [ "$hostkeys" ] && cp "/etc/apk/keys/"* "$tmpdir"/etc/apk/keys/ cp "${basedir}etc/apk/keys/"* "$tmpdir"/etc/apk/keys/ } @@ -148,7 +149,7 @@ initfs_cpio() { usage() { cat <