public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Cc: u-boot@lists.denx.de, Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Peter Robinson <pbrobinson@gmail.com>,
	Alexander Graf <agraf@csgraf.de>,
	Vagrant Cascadian <vagrant@reproducible-builds.org>,
	Samuel Holland <samuel@sholland.org>
Subject: Re: [PATCH] distro_bootcmd: Always check for custom boot scripts first
Date: Wed, 12 Oct 2022 12:50:16 -0400	[thread overview]
Message-ID: <20221012165016.GA328460@bill-the-cat> (raw)
In-Reply-To: <20220901220616.25814-1-andrej.skvortzov@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1870 bytes --]

On Fri, Sep 02, 2022 at 01:06:16AM +0300, Andrey Skvortsov wrote:

> If extlinux.conf is used, then it's not possible to customize boot
> environment, because scripts are not loaded.
> Usually it's possible to make some changes manually using command line
> and save boot environment. But if exlinux.conf is loaded
> from ext4 partition (for example on PinePhone), then environment are
> not saved/loaded at boot time from boot partition and it's not
> possible to persistently change boot environment without recompiling
> u-boot.
> 
> Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
> ---
> 
>  include/config_distro_bootcmd.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
> index 5506f3168f..7f4ef960a1 100644
> --- a/include/config_distro_bootcmd.h
> +++ b/include/config_distro_bootcmd.h
> @@ -477,8 +477,8 @@
>  		"echo Scanning ${devtype} "                               \
>  				"${devnum}:${distro_bootpart}...; "       \
>  		"for prefix in ${boot_prefixes}; do "                     \
> -			"run scan_dev_for_extlinux; "                     \
>  			"run scan_dev_for_scripts; "                      \
> +			"run scan_dev_for_extlinux; "                     \
>  		"done;"                                                   \
>  		SCAN_DEV_FOR_EFI                                          \
>  		"\0"                                                      \

Reworking the CC list a bit, I think this works against the intent. If
the distro provides extlinux.conf, that's what should be used, and
customized by the user (through normal distro methods), rather than
looking for a boot script that might be out of date / etc. Can you
please elaborate on what you're seeing and trying to do on the
PinePhone?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2022-10-12 16:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-01 22:06 [PATCH] distro_bootcmd: Always check for custom boot scripts first Andrey Skvortsov
2022-10-12 16:50 ` Tom Rini [this message]
2022-10-12 17:39   ` Vagrant Cascadian

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=20221012165016.GA328460@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=agraf@csgraf.de \
    --cc=andrej.skvortzov@gmail.com \
    --cc=pbrobinson@gmail.com \
    --cc=samuel@sholland.org \
    --cc=u-boot@lists.denx.de \
    --cc=vagrant@reproducible-builds.org \
    --cc=xypron.glpk@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