From 82a96801defbf9362419bc07b884166473076018 Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Thu, 28 Dec 2023 12:20:20 +0100 Subject: [PATCH] Remove "wipe" from recovery and trustfence initramfs This package is purely vestigial and hasn't been used at all in any of our initramfs images for over 7 years. It was used in the first implementation of the trustfence initramfs (commit 4dd7d438af8c85837503780390751240567d30be) to securely erase the key used by cryptsetup, but two weeks later, that logic was moved to trustfence-tool (commit a8c50c16eab0a49c605121339e6efd872aa1a8ea) and "wipe" was no longer needed. However, the package remained in the dependencies of the trustfence initramfs, which were then used as reference for the recovery initramfs, even though this initramfs didn't even need "wipe" to begin with. Removing this package saves 30.8 KiB in the ccimx6ul recovery image. https://onedigi.atlassian.net/browse/DEL-8819 Signed-off-by: Gabriel Valcazar --- .../recipes-core/images/dey-image-recovery-initramfs.bb | 1 - meta-digi-dey/recipes-core/trustfence/trustfence-initramfs.bb | 1 - 2 files changed, 2 deletions(-) diff --git a/meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb b/meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb index 8c5ea4b96..e8b06aeb9 100644 --- a/meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb +++ b/meta-digi-dey/recipes-core/images/dey-image-recovery-initramfs.bb @@ -12,7 +12,6 @@ PACKAGE_INSTALL = " \ recovery-initramfs \ swupdate \ trustfence-tool \ - wipe \ ${@bb.utils.contains('DEY_SOC_VENDOR', 'NXP', bb.utils.contains('STORAGE_MEDIA', 'mtd', 'imx-kobs', '', d), '', d)} \ " diff --git a/meta-digi-dey/recipes-core/trustfence/trustfence-initramfs.bb b/meta-digi-dey/recipes-core/trustfence/trustfence-initramfs.bb index 47afa79f7..d92412e64 100644 --- a/meta-digi-dey/recipes-core/trustfence/trustfence-initramfs.bb +++ b/meta-digi-dey/recipes-core/trustfence/trustfence-initramfs.bb @@ -23,7 +23,6 @@ RDEPENDS:${PN} = " \ cryptsetup \ trustfence-tool \ util-linux-findfs \ - wipe \ " PACKAGE_ARCH = "${MACHINE_ARCH}"