summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2018-11-28 11:23:02 +0100
committerGitHub <noreply@github.com>2018-11-28 11:23:02 +0100
commit73e15405ee32bcc33b6ef1a1a525e2b22bc641fe (patch)
tree1447d2a4c4089079b00df08b065e1b2cb31d48b3
parent893dac8ff3e15b90d9c1eab07c47e490cf69b8c6 (diff)
parenta5cf2677bd6bf4acaa1349d3030de0b7c48439ba (diff)
downloadmeta-updater-73e15405ee32bcc33b6ef1a1a525e2b22bc641fe.tar.gz
Merge pull request #438 from advancedtelematic/fixgb
Fix bloated OTA image
-rw-r--r--classes/image_types_ota.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index c9d21d1..3165b54 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -94,7 +94,7 @@ IMAGE_TYPEDEP_ota-ext4 = "ota"
94do_image_ota_ext4[depends] = "e2fsprogs-native:do_populate_sysroot" 94do_image_ota_ext4[depends] = "e2fsprogs-native:do_populate_sysroot"
95IMAGE_CMD_ota-ext4 () { 95IMAGE_CMD_ota-ext4 () {
96 # Calculate image type 96 # Calculate image type
97 OTA_ROOTFS_SIZE=$(calculate_size `du -ks $OTA_SYSROOT | cut -f 1` "${IMAGE_OVERHEAD_FACTOR}" "${IMAGE_ROOTFS_SIZE}" "${IMAGE_ROOTFS_MAXSIZE}" `expr ${IMAGE_ROOTFS_EXTRA_SPACE}` "${IMAGE_ROOTFS_ALIGNMENT}") 97 OTA_ROOTFS_SIZE=$(calculate_size `du -ks ${OTA_SYSROOT} | cut -f 1` "${IMAGE_OVERHEAD_FACTOR}" "${IMAGE_ROOTFS_SIZE}" "${IMAGE_ROOTFS_MAXSIZE}" `expr ${IMAGE_ROOTFS_EXTRA_SPACE}` "${IMAGE_ROOTFS_ALIGNMENT}")
98 98
99 if [ $OTA_ROOTFS_SIZE -lt 0 ]; then 99 if [ $OTA_ROOTFS_SIZE -lt 0 ]; then
100 bbfatal "create_ota failed to calculate OTA rootfs size!" 100 bbfatal "create_ota failed to calculate OTA rootfs size!"