aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitfs.in7
1 files 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 <<EOF
-usage: mkinitfs [-hkLl] [-b basedir] [-c configfile] [-F features] [-f fstab]
+usage: mkinitfs [-hkKLl] [-b basedir] [-c configfile] [-F features] [-f fstab]
[-i initfile ] [-o outfile] [-t tempdir] [kernelversion]"
options:
-b prefix files and kernel modules with basedir
@@ -158,6 +159,7 @@ options:
-h print this help
-i use initfile as init instead of $init
-k keep tempdir
+ -K copy also host keys to initramfs
-l only list files that would have been used
-L list available features
-o set another outfile
@@ -171,7 +173,7 @@ EOF
# main
-while getopts "b:c:f:F:hi:kLlo:qt:" opt; do
+while getopts "b:c:f:F:hi:kKLlo:qt:" opt; do
case "$opt" in
b) basedir="$OPTARG";;
c) config="$OPTARG";;
@@ -180,6 +182,7 @@ while getopts "b:c:f:F:hi:kLlo:qt:" opt; do
h) usage;;
i) init=$OPTARG;;
k) keeptmp=1;;
+ K) hostkeys=1;;
L) list_features=1;;
l) list_sources=1;;
o) outfile="$OPTARG";;