From fe3ba7ac5ccf5093a2771223e5a8f954c1bfef36 Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Fri, 15 Nov 2024 15:36:50 +0100 Subject: [PATCH] cryptsetup: demote udev runtime dependency to recommendation We use veritysetup in our custom initramfs to verify the rootfs before mounting it. We do not use udev or run systemd as PID1 in that initramfs. This RDEPENDS on udev and lvm2, and everything that udev ends up pulling in, thus bloats the initramfs by more than 10MiB. Removing udev from PACKAGECONFIG is not really an option, because we do want the udev integration in the real rootfs. Demote it to a recommendation so that the initramfs recipe can avoid udev and lvm2 using BAD_RECOMMENDATIONS or NO_RECOMMENDATIONS. Signed-off-by: Rasmus Villemoes Signed-off-by: Khem Raj --- meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.7.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.7.5.bb b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.7.5.bb index 60bf501eb9..91ea446851 100644 --- a/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.7.5.bb +++ b/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.7.5.bb @@ -53,7 +53,7 @@ PACKAGECONFIG[veritysetup] = "--enable-veritysetup,--disable-veritysetup" PACKAGECONFIG[luks2-reencryption] = "--enable-luks2-reencryption,--disable-luks2-reencryption" PACKAGECONFIG[integritysetup] = "--enable-integritysetup,--disable-integritysetup" PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux" -PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,,udev lvm2" +PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,,,udev lvm2" PACKAGECONFIG[kernel_crypto] = "--enable-kernel_crypto,--disable-kernel_crypto" # gcrypt-pkbdf2 requries --with-crypto_backend=gcrypt or the flag isn't # recognized.