From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id D0F5A1FF13B for ; Wed, 25 Feb 2026 19:38:16 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D9AE2EFD7; Wed, 25 Feb 2026 19:39:13 +0100 (CET) Date: Wed, 25 Feb 2026 19:39:04 +0100 From: Stoiko Ivanov To: pve-devel@lists.proxmox.com Subject: Re: [PATCH kernel-helper] proxmox-boot: add memtest86 as entry to systemd-boot Message-ID: <20260225193904.325f255d@rosa.proxmox.com> In-Reply-To: <20260225183621.201783-1-s.ivanov@proxmox.com> References: <20260225183621.201783-1-s.ivanov@proxmox.com> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1772044728123 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.071 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: MVBBWHHK5JMTNBODDLOLCC5USFVNWCCL X-Message-ID-Hash: MVBBWHHK5JMTNBODDLOLCC5USFVNWCCL X-MailFrom: s.ivanov@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 25 Feb 2026 19:35:03 +0100 Stoiko Ivanov wrote: > memtest86+ ships a config-snippet for grub configuration, and is thus > present on installations using grub (although currently not functional > when secure-boot is enabled). > > adding an equivalent entry for memtest86+ on systemd-booted systems > seems like an improvment and a step to having similar functionality in > our different boot-loader setups. > > Tested by installing proxmox-kernel-helper with this patch and running > proxmox-boot-tool reinit, followed by rebooting into memtest86+ on a > systemd-booted system. forgot to add a reference to: https://uapi-group.org/specifications/specs/boot_loader_specification/ (as it took me a short while to find where the entries syntax is defined) > > Suggested-by: Daniel Herzig > Signed-off-by: Stoiko Ivanov > --- > not 100% sure if it's worth adding, but both Daniel and I thought this might > exist and I remember missing it once on a host of mine > > src/bin/proxmox-boot-tool | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/src/bin/proxmox-boot-tool b/src/bin/proxmox-boot-tool > index 95d699d..b785c7d 100755 > --- a/src/bin/proxmox-boot-tool > +++ b/src/bin/proxmox-boot-tool > @@ -196,6 +196,17 @@ init_bootloader() { > echo "timeout 3" > "$esp_mp/$PMX_LOADER_CONF.tmp" > echo "default proxmox-*" >> "$esp_mp/$PMX_LOADER_CONF.tmp" > mv "$esp_mp/$PMX_LOADER_CONF.tmp" "$esp_mp/$PMX_LOADER_CONF" > + memtest=memtest86+x64.efi > + memtest_conf="$esp_mp/loader/entries/$memtest.conf" > + if [ -f "/boot/$memtest" ]; then > + echo "Adding $memtest .." > + cp "/boot/$memtest" "$esp_mp/EFI/" > + cat > "$memtest_conf.tmp" <<- EOF > + title Memory test ($memtest) > + efi /EFI/$memtest > + EOF > + mv "$memtest_conf.tmp" "$memtest_conf" > + fi > fi > else > echo "Installing grub i386-pc target.."