summaryrefslogtreecommitdiffstats
path: root/classes/override_grub-efi_secureboot.inc
diff options
context:
space:
mode:
authorMatei Valeanu <Matei.Valeanu@enea.com>2021-09-09 14:22:56 +0200
committerMatei Valeanu <Matei.Valeanu@enea.com>2021-09-09 14:22:56 +0200
commit8f49f61ef6df2db30b2b124b7ee5893124c70180 (patch)
treede596077e8b7925f42fffd38d25486b47177c336 /classes/override_grub-efi_secureboot.inc
parent1a0d008b62062b3bdfa97ec4761347c0d0c4e652 (diff)
parent06cb3727c2a013ff6927f85b9cdd708177e17609 (diff)
downloadmeta-el-nfv-access-8f49f61ef6df2db30b2b124b7ee5893124c70180.tar.gz
Merge branch 'develop'demo_CPDX-3644demo_CPDX-3634
Change-Id: I75bd22a68d9de4d96b65586be3c14fda7892b803
Diffstat (limited to 'classes/override_grub-efi_secureboot.inc')
-rw-r--r--classes/override_grub-efi_secureboot.inc31
1 files changed, 0 insertions, 31 deletions
diff --git a/classes/override_grub-efi_secureboot.inc b/classes/override_grub-efi_secureboot.inc
deleted file mode 100644
index b944ec8..0000000
--- a/classes/override_grub-efi_secureboot.inc
+++ /dev/null
@@ -1,31 +0,0 @@
1efi_populate() {
2 # DEST must be the root of the image so that EFIDIR is not
3 # nested under a top level directory.
4 DEST=$1
5
6 install -d ${DEST}${EFIDIR}
7
8 GRUB_IMAGE="grub-efi-bootia32.efi"
9 DEST_IMAGE="bootia32.efi"
10 if [ "${TARGET_ARCH}" = "x86_64" ]; then
11 GRUB_IMAGE="grub-efi-bootx64.efi"
12 DEST_IMAGE="bootx64.efi"
13 fi
14
15 #Install EFI binaries
16 install -m 0644 ${IMAGE_ROOTFS}/boot/efi${EFIDIR}/*.* ${DEST}${EFIDIR}
17
18 #Install kernel and initramfs sig
19 install -m 0644 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}.p7b ${DEST}/vmlinuz.p7b
20 install -m 0644 ${INITRD_LIVE}.p7b ${DEST}/initrd.p7b
21
22 EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
23 printf 'fs0:%s\%s\n' "$EFIPATH" "$DEST_IMAGE" >${DEST}/startup.nsh
24
25 install -m 0644 ${GRUB_CFG} ${DEST}${EFIDIR}/grub.cfg
26
27 #Install UEFI keys
28 install -d ${DEST}/uefi_sb_keys
29 install -m 0644 ${DEPLOY_DIR_IMAGE}/user-keys/uefi_sb_keys/*.crt ${DEST}/uefi_sb_keys/
30 install -m 0644 ${DEPLOY_DIR_IMAGE}/user-keys/uefi_sb_keys/*.esl ${DEST}/uefi_sb_keys/
31}