diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-07-04 12:49:33 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-01-27 12:18:01 +0000 |
commit | 392aa6fce2d4464c4f2d972a870aec6bf1416920 (patch) | |
tree | bfc2e06b0a38790796cdfd970d44cfbe68277556 | |
parent | 28cc6f7723b38e36b83a31e2bab4ce031a5b4db8 (diff) | |
download | alpine_aports-392aa6fce2d4464c4f2d972a870aec6bf1416920.tar.bz2 alpine_aports-392aa6fce2d4464c4f2d972a870aec6bf1416920.tar.xz alpine_aports-392aa6fce2d4464c4f2d972a870aec6bf1416920.zip |
scripts: add modloop signing support
-rwxr-xr-x | scripts/mkimg.base.sh | 5 |
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 @@ | |||
1 | build_kernel() { | 1 | build_kernel() { |
2 | local _flavor="$2" | 2 | local _flavor="$2" _modloopsign= |
3 | shift 3 | 3 | shift 3 |
4 | local _pkgs="$@" | 4 | local _pkgs="$@" |
5 | [ "$modloop_sign" = "yes" ] && _modloopsign="--modloopsign" | ||
5 | update-kernel \ | 6 | update-kernel \ |
6 | $_hostkeys \ | 7 | $_hostkeys \ |
7 | ${_abuild_pubkey:+--apk-pubkey $_abuild_pubkey} \ | 8 | ${_abuild_pubkey:+--apk-pubkey $_abuild_pubkey} \ |
9 | $_modloopsign \ | ||
8 | --media \ | 10 | --media \ |
9 | --flavor "$_flavor" \ | 11 | --flavor "$_flavor" \ |
10 | --arch "$ARCH" \ | 12 | --arch "$ARCH" \ |
@@ -291,6 +293,7 @@ profile_base() { | |||
291 | kernel_flavors="vanilla" | 293 | kernel_flavors="vanilla" |
292 | initfs_cmdline="modules=loop,squashfs,sd-mod,usb-storage quiet" | 294 | initfs_cmdline="modules=loop,squashfs,sd-mod,usb-storage quiet" |
293 | initfs_features="ata base bootchart cdrom squashfs ext4 mmc raid scsi usb virtio" | 295 | initfs_features="ata base bootchart cdrom squashfs ext4 mmc raid scsi usb virtio" |
296 | modloop_sign=yes | ||
294 | 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" | 297 | 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" |
295 | apks="alpine-base alpine-mirrors busybox kbd-bkeymaps chrony e2fsprogs network-extras libressl openssh tzdata" | 298 | apks="alpine-base alpine-mirrors busybox kbd-bkeymaps chrony e2fsprogs network-extras libressl openssh tzdata" |
296 | apkovl= | 299 | apkovl= |