mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] usr-rootfs: always enable, decouple from initmethod
@ 2026-03-28 16:19 Artur Wiebe via ptxdist
  2026-04-13  7:12 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Artur Wiebe via ptxdist @ 2026-03-28 16:19 UTC (permalink / raw)
  To: ptxdist; +Cc: Artur Wiebe

usr-rootfs installs the /usr merge symlinks (/bin → usr/bin,
/sbin → usr/sbin, /lib → usr/lib). These are required for any
dynamically linked binary to run, as the dynamic linker is looked
up via /lib64 → usr/lib.

Previously usr-rootfs was pulled in via "select USR_ROOTFS" in
initmethod. This broke minimal initramfs setups where /init is a
plain shell script and INITMETHOD is disabled: without the symlinks,
even busybox fails to start because the dynamic linker cannot be
found.

The UsrMerge layout is unconditionally needed on any target image,
so make USR_ROOTFS a bool with default y and remove the dependency
from initmethod.

Signed-off-by: Artur Wiebe <artur@4wiebe.de>
---
 rules/initmethod.in | 1 -
 rules/usr-rootfs.in | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/initmethod.in b/rules/initmethod.in
index 6bf67d01c..cad86e6b7 100644
--- a/rules/initmethod.in
+++ b/rules/initmethod.in
@@ -2,7 +2,6 @@
 
 menuconfig INITMETHOD
 	bool  "init                          "
-	select USR_ROOTFS
 	default y
 	help
 	  Choose the system startup init method here
diff --git a/rules/usr-rootfs.in b/rules/usr-rootfs.in
index 8190c62d1..f8377ad37 100644
--- a/rules/usr-rootfs.in
+++ b/rules/usr-rootfs.in
@@ -1,5 +1,6 @@
 ## SECTION=rootfs
 
 config USR_ROOTFS
-	tristate
+	bool
+	default y
 	select BASE
-- 
2.53.0




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] usr-rootfs: always enable, decouple from initmethod
  2026-03-28 16:19 [ptxdist] [PATCH] usr-rootfs: always enable, decouple from initmethod Artur Wiebe via ptxdist
@ 2026-04-13  7:12 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2026-04-13  7:12 UTC (permalink / raw)
  To: ptxdist; +Cc: Artur Wiebe

Thanks, applied as 65b45fb254e14d60a0581d7728b9163d04f0327b.

Michael

[sent from post-receive hook]

On Mon, 13 Apr 2026 09:12:14 +0200, Artur Wiebe <artur@4wiebe.de> wrote:
> usr-rootfs installs the /usr merge symlinks (/bin → usr/bin,
> /sbin → usr/sbin, /lib → usr/lib). These are required for any
> dynamically linked binary to run, as the dynamic linker is looked
> up via /lib64 → usr/lib.
> 
> Previously usr-rootfs was pulled in via "select USR_ROOTFS" in
> initmethod. This broke minimal initramfs setups where /init is a
> plain shell script and INITMETHOD is disabled: without the symlinks,
> even busybox fails to start because the dynamic linker cannot be
> found.
> 
> The UsrMerge layout is unconditionally needed on any target image,
> so make USR_ROOTFS a bool with default y and remove the dependency
> from initmethod.
> 
> Signed-off-by: Artur Wiebe <artur@4wiebe.de>
> Message-Id: <20260328161943.966987-1-artur@4wiebe.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/initmethod.in b/rules/initmethod.in
> index 6bf67d01ca90..cad86e6b74c2 100644
> --- a/rules/initmethod.in
> +++ b/rules/initmethod.in
> @@ -2,7 +2,6 @@
>  
>  menuconfig INITMETHOD
>  	bool  "init                          "
> -	select USR_ROOTFS
>  	default y
>  	help
>  	  Choose the system startup init method here
> diff --git a/rules/usr-rootfs.in b/rules/usr-rootfs.in
> index 8190c62d13af..f8377ad37743 100644
> --- a/rules/usr-rootfs.in
> +++ b/rules/usr-rootfs.in
> @@ -1,5 +1,6 @@
>  ## SECTION=rootfs
>  
>  config USR_ROOTFS
> -	tristate
> +	bool
> +	default y
>  	select BASE



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-13  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-28 16:19 [ptxdist] [PATCH] usr-rootfs: always enable, decouple from initmethod Artur Wiebe via ptxdist
2026-04-13  7:12 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox