aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mkimg.base.sh
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-07-04 12:49:33 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2019-01-27 12:18:01 +0000
commit392aa6fce2d4464c4f2d972a870aec6bf1416920 (patch)
treebfc2e06b0a38790796cdfd970d44cfbe68277556 /scripts/mkimg.base.sh
parent28cc6f7723b38e36b83a31e2bab4ce031a5b4db8 (diff)
downloadaports-392aa6fce2d4464c4f2d972a870aec6bf1416920.tar.gz
aports-392aa6fce2d4464c4f2d972a870aec6bf1416920.tar.bz2
aports-392aa6fce2d4464c4f2d972a870aec6bf1416920.tar.xz
scripts: add modloop signing support
Diffstat (limited to 'scripts/mkimg.base.sh')
-rwxr-xr-xscripts/mkimg.base.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mkimg.base.sh b/scripts/mkimg.base.sh
index f6cad82774..aed90749d5 100755
--- a/scripts/mkimg.base.sh
+++ b/scripts/mkimg.base.sh
@@ -1,10 +1,12 @@
build_kernel() {
- local _flavor="$2"
+ local _flavor="$2" _modloopsign=
shift 3
local _pkgs="$@"
+ [ "$modloop_sign" = "yes" ] && _modloopsign="--modloopsign"
update-kernel \
$_hostkeys \
${_abuild_pubkey:+--apk-pubkey $_abuild_pubkey} \
+ $_modloopsign \
--media \
--flavor "$_flavor" \
--arch "$ARCH" \
@@ -291,6 +293,7 @@ profile_base() {
kernel_flavors="vanilla"
initfs_cmdline="modules=loop,squashfs,sd-mod,usb-storage quiet"
initfs_features="ata base bootchart cdrom squashfs ext4 mmc raid scsi usb virtio"
+ modloop_sign=yes
grub_mod="disk part_gpt part_msdos linux multiboot2 normal configfile search search_label efi_uga efi_gop fat iso9660 cat echo ls test true help gzio"
apks="alpine-base alpine-mirrors busybox kbd-bkeymaps chrony e2fsprogs network-extras libressl openssh tzdata"
apkovl=