From nobody Tue Aug 13 07:02:53 2024 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wjj5C3Mb6z5SXvt for ; Tue, 13 Aug 2024 07:02:55 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wjj5C2mmJz4JsH for ; Tue, 13 Aug 2024 07:02:55 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTPS id dlPwsGKppMArNdlYVsH2Li; Tue, 13 Aug 2024 07:02:55 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id dlYTs188cKHV8dlYUsB5Db; Tue, 13 Aug 2024 07:02:55 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=XeEqz555 c=1 sm=1 tr=0 ts=66bb051f a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=yoJbH4e0A30A:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=ZClLZRhdeCCumhK2u-AA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 8C4252BD; Tue, 13 Aug 2024 00:02:53 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 81DF5DD; Tue, 13 Aug 2024 00:02:53 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Daniel Braniss cc: Cy Schubert , freebsd-hackers Subject: Re: FreeBSD 14.1 and UEFI boot ignores bootme flag In-reply-to: <9DEEEE5F-EC21-4CC5-BC5F-A10162D98365@cs.huji.ac.il> References: <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il> <20240813065020.8084E6D@slippy.cwsent.com> <9DEEEE5F-EC21-4CC5-BC5F-A10162D98365@cs.huji.ac.il> Comments: In-reply-to Daniel Braniss message dated "Tue, 13 Aug 2024 09:55:47 +0300." List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 13 Aug 2024 00:02:53 -0700 Message-Id: <20240813070253.81DF5DD@slippy.cwsent.com> X-CMAE-Envelope: MS4xfEyWjZYXhKKc9Dxx7ZUszFCuQl8e/zg36tGTLo1FRAzIoFIipyV3fcboegkTXAUnBSWEsH6Ok1cjSj4Pt50F1wIzHQO93loLlkBB0Dc7nv0oKsrtmXTE HpZ4NgF4WqkVWjngy77N6/bCVrPyzVWdsDHZrqUQepu6w0UwfoqEv5KqYd3tm1ogYuH7U2+liKanz7pV5P/t/2HBhy96JnFlAqdV94IS0Mm+FEoJzNJLQ7Hr X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4Wjj5C2mmJz4JsH I don't think loader.efi honours the bootme flag. Try the gptboot.efi binary instead. It does honour the various GPT flags. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0 In message <9DEEEE5F-EC21-4CC5-BC5F-A10162D98365@cs.huji.ac.il>, Daniel Braniss writes: > hi Cy, > the boot code is the the latest, copied /boot/loader.efi to = > /mnt/EFI/BOOT/BOOTX64.efi > > > On 13 Aug 2024, at 09:50, Cy Schubert = > wrote: > >=20 > > In message <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il>, = > Daniel=20 > > Braniss > > writes: > >> hi, > >> my disk has 2 root partitions, and once I switched to UEFI boot, = > =3D > >> can=3DE2=3D80=3D99t boot the second partition: > >> (the hardware is a bit old, Dell PowerEdge R710 with bios from =3D > >> 05/22/2018) > >>=20 > >> store-08# gpart show -l > >> =3D3D> 40 5857345456 mfid0 GPT (2.7T) > >> 40 81920 1 efi (40M) > >> 81960 8388608 2 root (4.0G) > >> 8470568 8388608 3 root0 [bootme] (4.0G) > >> 16859176 8388608 4 d1 (4.0G) > >> 25247784 8388608 5 d2 (4.0G) > >> 33636392 5823709104 6 zfs (2.7T) > >>=20 > >> it only boots from partition 2. > >>=20 > >> so is there any magic? > >=20 > > Which bootcode do you have in your efi partition? > >=20 > >=20 > > --=20 > > Cheers, > > Cy Schubert > > FreeBSD UNIX: Web: https://FreeBSD.org > > NTP: Web: https://nwtime.org > >=20 > > e^(i*pi)+1=3D0 > >=20 > >=20