From patchwork Tue Apr 15 13:06:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Krause X-Patchwork-Id: 61297 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3538C369B5 for ; Tue, 15 Apr 2025 13:06:23 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) by mx.groups.io with SMTP id smtpd.web10.19573.1744722374842086217 for ; Tue, 15 Apr 2025 06:06:15 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: pengutronix.de, ip: 185.203.201.7, mailfrom: bst@pengutronix.de) Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1u4fzR-0008VJ-AT; Tue, 15 Apr 2025 15:06:13 +0200 From: Bastian Krause To: openembedded-core@lists.openembedded.org Cc: yocto@pengutronix.de, Bastian Krause Subject: [RFC PATCH oe-core 1/4] initramfs-framework: make RDEPENDS/RRECOMMENDS base package-specific Date: Tue, 15 Apr 2025 15:06:05 +0200 Message-Id: <20250415130608.1804620-1-bst@pengutronix.de> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::ac X-SA-Exim-Mail-From: bst@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: openembedded-core@lists.openembedded.org List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 15 Apr 2025 13:06:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/214848 initramfs-framework itself is a meta package. It cannot be referenced in PACKAGE_INSTALL directly, so the RDEPENDS/RRECOMMENDS do not have an effect. So turn them into directives for initramfs-framework-base instead. Currently all users of initramfs-framework-* add ${VIRTUAL-RUNTIME_base-utils} explicitly to PACKAGE_INSTALL. For `PACKAGE_CLASSES = "package_rpm"`, a dependency for `/bin/sh` is added by RPM's shebang detection further hiding this issue. Signed-off-by: Bastian Krause --- meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb index bb4984366d..184da4f39d 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb +++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb @@ -1,8 +1,6 @@ SUMMARY = "Modular initramfs system" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" -RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_base-utils}" -RRECOMMENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog}" inherit allarch @@ -72,6 +70,7 @@ PACKAGES = "${PN}-base \ " FILES:${PN}-base = "/init /init.d/99-finish /dev" +RDEPENDS:${PN}-base += "${VIRTUAL-RUNTIME_base-utils}" # 99-finish in base depends on some other module which mounts # the rootfs, like 90-rootfs. To replace that default, use @@ -79,7 +78,7 @@ FILES:${PN}-base = "/init /init.d/99-finish /dev" # initramfs recipe and install something else, or install # something that runs earlier (for example, a 89-my-rootfs) # and mounts the rootfs. Then 90-rootfs will proceed immediately. -RRECOMMENDS:${PN}-base += "initramfs-module-rootfs" +RRECOMMENDS:${PN}-base += "initramfs-module-rootfs ${VIRTUAL-RUNTIME_base-utils-syslog}" SUMMARY:initramfs-module-exec = "initramfs support for easy execution of applications" RDEPENDS:initramfs-module-exec = "${PN}-base" From patchwork Tue Apr 15 13:06:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Krause X-Patchwork-Id: 61298 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C41A5C369B4 for ; Tue, 15 Apr 2025 13:06:23 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) by mx.groups.io with SMTP id smtpd.web11.19587.1744722374843638427 for ; Tue, 15 Apr 2025 06:06:15 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: pengutronix.de, ip: 185.203.201.7, mailfrom: bst@pengutronix.de) Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1u4fzR-0008VJ-Bf; Tue, 15 Apr 2025 15:06:13 +0200 From: Bastian Krause To: openembedded-core@lists.openembedded.org Cc: yocto@pengutronix.de, Bastian Krause Subject: [RFC PATCH oe-core 2/4] core-image-initramfs-boot: drop unncessary base-utils from PACKAGE_INSTALL Date: Tue, 15 Apr 2025 15:06:06 +0200 Message-Id: <20250415130608.1804620-2-bst@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250415130608.1804620-1-bst@pengutronix.de> References: <20250415130608.1804620-1-bst@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::ac X-SA-Exim-Mail-From: bst@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: openembedded-core@lists.openembedded.org List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 15 Apr 2025 13:06:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/214847 base-utils are only needed because the initramfs init functionality is implemented in shell. There is no other reason in core-image-initramfs-boot to add this explicitly. So let initramfs-framework-base pull in the base-utils dependency and drop it here. Signed-off-by: Bastian Krause --- meta/recipes-core/images/core-image-initramfs-boot.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/images/core-image-initramfs-boot.bb b/meta/recipes-core/images/core-image-initramfs-boot.bb index 7258944751..6fc113345c 100644 --- a/meta/recipes-core/images/core-image-initramfs-boot.bb +++ b/meta/recipes-core/images/core-image-initramfs-boot.bb @@ -4,7 +4,7 @@ LICENSE = "MIT" INITRAMFS_SCRIPTS ?= "initramfs-framework-base initramfs-module-udev" -PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} base-passwd" +PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} base-passwd" # Ensure the initramfs only contains the bare minimum IMAGE_FEATURES = "" From patchwork Tue Apr 15 13:06:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Krause X-Patchwork-Id: 61300 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC134C369AB for ; Tue, 15 Apr 2025 13:06:23 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) by mx.groups.io with SMTP id smtpd.web10.19574.1744722374910244165 for ; Tue, 15 Apr 2025 06:06:15 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: pengutronix.de, ip: 185.203.201.7, mailfrom: bst@pengutronix.de) Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1u4fzR-0008VJ-Cl; Tue, 15 Apr 2025 15:06:13 +0200 From: Bastian Krause To: openembedded-core@lists.openembedded.org Cc: yocto@pengutronix.de, Bastian Krause Subject: [RFC PATCH oe-core 3/4] core-image-minimal-initramfs: drop unncessary base-utils from PACKAGE_INSTALL Date: Tue, 15 Apr 2025 15:06:07 +0200 Message-Id: <20250415130608.1804620-3-bst@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250415130608.1804620-1-bst@pengutronix.de> References: <20250415130608.1804620-1-bst@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::ac X-SA-Exim-Mail-From: bst@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: openembedded-core@lists.openembedded.org List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 15 Apr 2025 13:06:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/214849 base-utils are only needed because the initramfs init functionality is implemented in shell. There is no other reason in core-image-minimal-initramfs to add this explicitly. So let initramfs-framework-base pull in the base-utils dependency and drop it here. Signed-off-by: Bastian Krause --- meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb b/meta/recipes-core/images/core-image-minimal-initramfs.bb index 4e210d1bf3..fb629f1034 100644 --- a/meta/recipes-core/images/core-image-minimal-initramfs.bb +++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb @@ -12,7 +12,7 @@ INITRAMFS_SCRIPTS ?= "\ initramfs-module-install-efi \ " -PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" +PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" # Do not pollute the initrd image with rootfs features IMAGE_FEATURES = "" From patchwork Tue Apr 15 13:06:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Krause X-Patchwork-Id: 61299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8B6DC369B8 for ; Tue, 15 Apr 2025 13:06:23 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) by mx.groups.io with SMTP id smtpd.web11.19588.1744722374958580337 for ; Tue, 15 Apr 2025 06:06:15 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: pengutronix.de, ip: 185.203.201.7, mailfrom: bst@pengutronix.de) Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1u4fzR-0008VJ-Dr; Tue, 15 Apr 2025 15:06:13 +0200 From: Bastian Krause To: openembedded-core@lists.openembedded.org Cc: yocto@pengutronix.de, Bastian Krause Subject: [RFC PATCH oe-core 4/4] core-image-minimal-initramfs: drop explicit udev from PACKAGE_INSTALL Date: Tue, 15 Apr 2025 15:06:08 +0200 Message-Id: <20250415130608.1804620-4-bst@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250415130608.1804620-1-bst@pengutronix.de> References: <20250415130608.1804620-1-bst@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::ac X-SA-Exim-Mail-From: bst@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: openembedded-core@lists.openembedded.org List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 15 Apr 2025 13:06:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/214850 initramfs-module-udev pulls in the udev dependency. There is no reason in core-image-minimal-initramfs to add udev explicitly. So drop it here. Signed-off-by: Bastian Krause --- meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb b/meta/recipes-core/images/core-image-minimal-initramfs.bb index fb629f1034..0c760b63bf 100644 --- a/meta/recipes-core/images/core-image-minimal-initramfs.bb +++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb @@ -12,7 +12,7 @@ INITRAMFS_SCRIPTS ?= "\ initramfs-module-install-efi \ " -PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" +PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}" # Do not pollute the initrd image with rootfs features IMAGE_FEATURES = ""