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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A1DE3C38145 for ; Fri, 2 Sep 2022 11:03:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3BC2184A38; Fri, 2 Sep 2022 13:03:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ge8k5GKN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 405F3841EF; Fri, 2 Sep 2022 00:06:31 +0200 (CEST) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ECA3F83108 for ; Fri, 2 Sep 2022 00:06:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andrej.skvortzov@gmail.com Received: by mail-ed1-x52e.google.com with SMTP id e18so470289edj.3 for ; Thu, 01 Sep 2022 15:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=E1S2KIb2XPNyKrmG+/sDqDVy/JV04S3uMMaJR3sgnXA=; b=ge8k5GKN72lINCzfB34LiFn1VZJXN7i+X4uQMcu/2UawHMoMUBOaC0QZTBgy8O/OVA 9sHTJSvaroMzqxqWMGVC3gfeHx6DnUC45eVzPOWEtLSNMSQTmvfr8DsuCdZMuKd7toNx bvJ07UhXKlxjbgNhrIyGy6eTaU5YddhOvRfiehoGjhCwMklEBlMU1urFZG9UCbj8yqWF fIi4jPtU/pgZI8jD1sVs+hfFYXqmj/pDURXPKO1UxDKzR+Itb0WAum7rTpPO0qinw3b+ VIIrUW4TAV2LppaG1Uh4VINRHvNHwNf2HgzV+8CupjiPJX1vbMA6+mohGdJXJeRS8GZx Fhng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=E1S2KIb2XPNyKrmG+/sDqDVy/JV04S3uMMaJR3sgnXA=; b=LgVBUN527lID6FPifIRkvwSiAGzU/xzFFqGJGjVgI8Lg5gB5OG69sKgf7gL/ANTqHv WtRsoYVQgp26RGN9OWwVhcq3hrEhDZmBegA9bqanwY66+1qz763K7r+G1C/A7LXpQ3SP wzIvvPCUbrJAC8a+brgjFazIlOZd8LUCfgMCvToljdaqthmLRu81NC65D3vyehrecXmL ulltjH1qXQapIhlNB6SKzfcwYOZ+3191N3O4M42Fm3/4cZ7ZWYWOVPhdAxunnFZXIoFs ouVLthH70aN8euIH3hP9k8YN5LbvwYFmOL0xtfZgM1dChLFIn0qgsxXxKhCm7OE1tQuo hoyw== X-Gm-Message-State: ACgBeo1rlRLWEfvACnSsn4BpqpmWxKJlOVIvArGwE4TU2Wuh/DfZesUf XnkSsnQhSZZWqikzvmcCDIKitMitD4b0Cg== X-Google-Smtp-Source: AA6agR5idc9FYP4FHasLq7MoePzVkdsSy7id1V/AlCvKYmFhp/KCrnaGIAaA5nSqYOT4jpCjQ2nuHA== X-Received: by 2002:a05:6402:2a06:b0:447:820a:1afe with SMTP id ey6-20020a0564022a0600b00447820a1afemr30680677edb.291.1662069988141; Thu, 01 Sep 2022 15:06:28 -0700 (PDT) Received: from crion89.new-nest.local ([176.236.75.214]) by smtp.gmail.com with ESMTPSA id q3-20020a17090676c300b007030c97ae62sm208631ejn.191.2022.09.01.15.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 15:06:27 -0700 (PDT) From: Andrey Skvortsov To: u-boot@lists.denx.de Cc: Samuel Dionne-Riel , Andrey Skvortsov , Frieder Schrempf , Mark Kettenis , Neil Armstrong , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Peter Hoyes Subject: [PATCH] distro_bootcmd: Always check for custom boot scripts first Date: Fri, 2 Sep 2022 01:06:16 +0300 Message-Id: <20220901220616.25814-1-andrej.skvortzov@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 02 Sep 2022 13:03:15 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 --- 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" \ -- 2.20.1