summaryrefslogtreecommitdiffstats
path: root/classes/image_types_ota.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/image_types_ota.bbclass')
-rw-r--r--classes/image_types_ota.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index 8af6637..0bb31de 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -5,7 +5,7 @@ do_image_ota[dirs] = "${OTA_SYSROOT}"
5do_image_ota[cleandirs] = "${OTA_SYSROOT}" 5do_image_ota[cleandirs] = "${OTA_SYSROOT}"
6do_image_ota[depends] = "${@'grub:do_populate_sysroot' if d.getVar('OSTREE_BOOTLOADER') == 'grub' else ''} \ 6do_image_ota[depends] = "${@'grub:do_populate_sysroot' if d.getVar('OSTREE_BOOTLOADER') == 'grub' else ''} \
7 ${@'virtual/bootloader:do_deploy' if d.getVar('OSTREE_BOOTLOADER') == 'u-boot' else ''}" 7 ${@'virtual/bootloader:do_deploy' if d.getVar('OSTREE_BOOTLOADER') == 'u-boot' else ''}"
8IMAGE_CMD_ota () { 8IMAGE_CMD:ota () {
9 ostree admin --sysroot=${OTA_SYSROOT} init-fs --modern ${OTA_SYSROOT} 9 ostree admin --sysroot=${OTA_SYSROOT} init-fs --modern ${OTA_SYSROOT}
10 ostree admin --sysroot=${OTA_SYSROOT} os-init ${OSTREE_OSNAME} 10 ostree admin --sysroot=${OTA_SYSROOT} os-init ${OSTREE_OSNAME}
11 11
@@ -77,10 +77,10 @@ IMAGE_CMD_ota () {
77 echo "{\"${ostree_target_hash}\":\"${GARAGE_TARGET_NAME}-${target_version}\"}" > ${OTA_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/sota/import/installed_versions 77 echo "{\"${ostree_target_hash}\":\"${GARAGE_TARGET_NAME}-${target_version}\"}" > ${OTA_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/sota/import/installed_versions
78} 78}
79 79
80EXTRA_IMAGECMD_ota-ext4 = "-L otaroot -i 4096 -t ext4" 80EXTRA_IMAGECMD:ota-ext4 = "-L otaroot -i 4096 -t ext4"
81IMAGE_TYPEDEP_ota-ext4 = "ota" 81IMAGE_TYPEDEP_ota-ext4 = "ota"
82IMAGE_ROOTFS_task-image-ota-ext4 = "${OTA_SYSROOT}" 82IMAGE_ROOTFS_task-image-ota-ext4 = "${OTA_SYSROOT}"
83IMAGE_CMD_ota-ext4 () { 83IMAGE_CMD:ota-ext4 () {
84 ln -sf ${STAGING_DIR_NATIVE}${base_sbindir_native}/mkfs.ext4 ${STAGING_DIR_NATIVE}${base_sbindir_native}/mkfs.ota-ext4 84 ln -sf ${STAGING_DIR_NATIVE}${base_sbindir_native}/mkfs.ext4 ${STAGING_DIR_NATIVE}${base_sbindir_native}/mkfs.ota-ext4
85 ln -sf ${STAGING_DIR_NATIVE}${base_sbindir_native}/fsck.ext4 ${STAGING_DIR_NATIVE}${base_sbindir_native}/fsck.ota-ext4 85 ln -sf ${STAGING_DIR_NATIVE}${base_sbindir_native}/fsck.ext4 ${STAGING_DIR_NATIVE}${base_sbindir_native}/fsck.ota-ext4
86 oe_mkext234fs ota-ext4 ${EXTRA_IMAGECMD} 86 oe_mkext234fs ota-ext4 ${EXTRA_IMAGECMD}