diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mkimage.sh | 8 | ||||
-rw-r--r-- | scripts/mkimg.base.sh | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/scripts/mkimage.sh b/scripts/mkimage.sh index 50d067fa54..806247213b 100644 --- a/scripts/mkimage.sh +++ b/scripts/mkimage.sh @@ -209,6 +209,14 @@ req_arch=${req_arch:-${default_arch}} [ "$req_arch" != "all" ] || req_arch="${all_arch}" [ "$req_profiles" != "all" ] || req_profiles="${all_profiles}" +# get abuild pubkey used to sign the apkindex +# we need inject this to the initramfs or we will not be able to use the +# boot repository +if [ -z "$_hostkeys" ]; then + _pub=${PACKAGER_PRIVKEY:+${PACKAGER_PRIVKEY}.pub} + _abuild_pubkey="${PACKAGER_PUBKEY:-$_pub}" +fi + # create images for ARCH in $req_arch; do APKROOT="$WORKDIR/apkroot-$ARCH" diff --git a/scripts/mkimg.base.sh b/scripts/mkimg.base.sh index db2a3b2818..354d174010 100644 --- a/scripts/mkimg.base.sh +++ b/scripts/mkimg.base.sh @@ -4,6 +4,7 @@ build_kernel() { local _pkgs="$@" update-kernel \ $_hostkeys \ + ${_abuild_pubkey:+--apk-pubkey $_abuild_pubkey} \ --media \ --flavor "$_flavor" \ --arch "$ARCH" \ |