diff options
Diffstat (limited to 'classes/override_image_types_ostree.inc')
-rw-r--r-- | classes/override_image_types_ostree.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/classes/override_image_types_ostree.inc b/classes/override_image_types_ostree.inc index 241afcd..34d2d1f 100644 --- a/classes/override_image_types_ostree.inc +++ b/classes/override_image_types_ostree.inc | |||
@@ -12,6 +12,7 @@ do_image_ostree[cleandirs] = "${OSTREE_ROOTFS}" | |||
12 | do_image_ostree[subimages] = "rootfs.ostree.tar.bz2" | 12 | do_image_ostree[subimages] = "rootfs.ostree.tar.bz2" |
13 | do_image_ostree[imgsuffix] = "." | 13 | do_image_ostree[imgsuffix] = "." |
14 | export OSTREE_ROOTFS | 14 | export OSTREE_ROOTFS |
15 | SECURE_BOOT_ENABLED = "${@bb.utils.contains("DISTRO_FEATURES", "efi-secure-boot", "1", "0", d)}" | ||
15 | 16 | ||
16 | IMAGE_CMD_ostree () { | 17 | IMAGE_CMD_ostree () { |
17 | if [ -z "$OSTREE_REPO" ]; then | 18 | if [ -z "$OSTREE_REPO" ]; then |
@@ -128,11 +129,14 @@ IMAGE_CMD_ostree () { | |||
128 | 129 | ||
129 | checksum=`sha256sum ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} | cut -f 1 -d " "` | 130 | checksum=`sha256sum ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} | cut -f 1 -d " "` |
130 | 131 | ||
131 | # Copy kernel and initramfs and their signature files | ||
132 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} boot/vmlinuz-${checksum} | 132 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} boot/vmlinuz-${checksum} |
133 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL}.p7b boot/vmlinuz-${checksum}.p7b | ||
134 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}${RAMDISK_EXT} boot/initramfs-${checksum} | 133 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}${RAMDISK_EXT} boot/initramfs-${checksum} |
135 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}${RAMDISK_EXT}.p7b boot/initramfs-${checksum}.p7b | 134 | |
135 | if [ "${SECURE_BOOT_ENABLED}" == "1" ]; then | ||
136 | # Copy kernel and initramfs and their signature files | ||
137 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL}.p7b boot/vmlinuz-${checksum}.p7b | ||
138 | cp ${DEPLOY_DIR_IMAGE}/${OSTREE_INITRAMFS_IMAGE}-${MACHINE}${RAMDISK_EXT}.p7b boot/initramfs-${checksum}.p7b | ||
139 | fi | ||
136 | 140 | ||
137 | # Copy image manifest | 141 | # Copy image manifest |
138 | cat ${IMAGE_MANIFEST} | cut -d " " -f1,3 > usr/package.manifest | 142 | cat ${IMAGE_MANIFEST} | cut -d " " -f1,3 > usr/package.manifest |