From e80d5b021cd311d6bc7102c3ad1fe354028d2ab6 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Tue, 24 Jan 2017 19:22:51 +0100 Subject: [PATCH] recovery init: configure UBIFS update partition to use ZLIB compression Signed-off-by: Javier Viguera --- .../recovery/recovery-initramfs/recovery-initramfs-init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-digi-dey/recipes-core/recovery/recovery-initramfs/recovery-initramfs-init b/meta-digi-dey/recipes-core/recovery/recovery-initramfs/recovery-initramfs-init index 6399d3822..1e43d505d 100644 --- a/meta-digi-dey/recipes-core/recovery/recovery-initramfs/recovery-initramfs-init +++ b/meta-digi-dey/recipes-core/recovery/recovery-initramfs/recovery-initramfs-init @@ -279,6 +279,9 @@ format_ubi_volume() { # Create UBI Vol. ubimkvol "/dev/ubi${dev_number}" -m -N "${1}" >/dev/null 2>&1 if [ "$?" = "0" ]; then + # Configure the empty UBIFS partition to use ZLIB + volid="$(ubinfo "/dev/ubi${dev_number}" -N "${1}" | sed -ne 's,Volume ID:[[:blank:]]\+\([0-9]\+\)[[:blank:]]\+.*,\1,g;T;p')" + mkfs.ubifs -x zlib -F /dev/ubi${dev_number}_${volid} psplash_progress "100" log "Partition '${1}' successfully erased!" # Detach MTD partition.