mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Christian Eggers <ceggers@arri.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org, ceggers@gmx.de
Subject: Re: [PATCH] bootchooser: Change name of kernel parameter
Date: Mon, 27 Jan 2020 10:37:53 +0100	[thread overview]
Message-ID: <7624877.e5WoEmy3uL@n95hx1g2> (raw)
In-Reply-To: <153b40a5-3a31-da30-dfbb-9d2eeb82c426@pengutronix.de>

Hello Ahmad,

> Existing userspace like RAUC[1] rely on this naming, so the default may
> not be changed.
> 
> [1]: https://github.com/rauc/rauc/blob/f52978d9736f18794f7e277ca440e2e4e78c9703/src/context.c#L47
that is what I already suspected...

For my initramfs (klibc based), I need a very cheap solution for mounting the "right" root fs. Currently
I work only with standard utilities (sh, mount, cat, ...) and I avoid creating a own program for this.
I had just success with the following expression

read CMDLINE < /proc/cmdline
if [ "${CMDLINE#bootchooser.active=system1}" != "${CMDLINE}" ]; then
	root=ubi0:rootfs1
else
	root=ubi0:rootfs0
fi
mount -t ubifs $root /root

If the string "bootchooser.active=system1" appears on the command line, the expression will match.
This way I can distinguish between "system1" and "system0".

As the result, my previous patch should be dropped.

regards
Christian





_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2020-01-27  9:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27  7:46 Christian Eggers
2020-01-27  8:31 ` Ahmad Fatoum
2020-01-27  9:37   ` Christian Eggers [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=7624877.e5WoEmy3uL@n95hx1g2 \
    --to=ceggers@arri.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=ceggers@gmx.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