recovery-initramfs-init: fix support to identify encrypted rootfs images
Since we added support for compressing rootfs images, we need to manage SWU packages with a regular rootfs image and with compressed images. That support was missing in the identification process when the SWU packet was verified. This commit fixes the identification of compressed rootfs images. https://onedigi.atlassian.net/browse/CC8X-320 Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
4e303ab542
commit
b03a2af5b2
|
|
@ -409,7 +409,7 @@ check_swu_package() {
|
|||
grep "Found Image" "${SWUPDATE_OUTPUT}" | grep -qs "rootfs for handler" && ROOTFS_IMAGE_IN_PACKAGE="yes"
|
||||
else
|
||||
# For eMMC packages, check for a *.ext4 image, which is very likely intended for the rootfs partition
|
||||
grep "Found Image" "${SWUPDATE_OUTPUT}" | grep -qs "\.ext4 in device" && ROOTFS_IMAGE_IN_PACKAGE="yes"
|
||||
grep -E "Found( compressed){0,1} Image" "${SWUPDATE_OUTPUT}" | grep -Eqs "\.ext4(\.gz){0,1} in device" && ROOTFS_IMAGE_IN_PACKAGE="yes"
|
||||
fi
|
||||
|
||||
# Check if the rootfs is meant to be encrypted
|
||||
|
|
|
|||
Loading…
Reference in New Issue