From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Artur Wiebe <artur@4wiebe.de>
Subject: Re: [ptxdist] [APPLIED] usr-rootfs: always enable, decouple from initmethod
Date: Mon, 13 Apr 2026 09:12:14 +0200 [thread overview]
Message-ID: <20260413071214.342218-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20260328161943.966987-1-artur@4wiebe.de>
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
prev parent reply other threads:[~2026-04-13 7:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-28 16:19 [ptxdist] [PATCH] " Artur Wiebe via ptxdist
2026-04-13 7:12 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260413071214.342218-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=artur@4wiebe.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox