From nobody Tue Aug 13 07:13:27 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 4WjjKQ4Bdnz5SYtB for ; Tue, 13 Aug 2024 07:13:30 +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 4WjjKP1QfFz4LNd for ; Tue, 13 Aug 2024 07:13:29 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=quarantine) header.from=cschubert.com; spf=pass (mx1.freebsd.org: domain of cy.schubert@cschubert.com designates 3.97.99.33 as permitted sender) smtp.mailfrom=cy.schubert@cschubert.com Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTPS id daibsFqhPMArNdliisH2e5; Tue, 13 Aug 2024 07:13:28 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id dlihs0HKfGvSVdliisebqL; Tue, 13 Aug 2024 07:13:28 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=FpSm/Hrq c=1 sm=1 tr=0 ts=66bb0798 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=VxmjJ2MpAAAA:8 a=HPzY6UGRKc6FTzp18xcA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 a=7gXAzLPJhVmCkEl4_tsf:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 344462E2; Tue, 13 Aug 2024 00:13:27 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 145CC75; Tue, 13 Aug 2024 00:13:27 -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 , freebsd-hackers Subject: Re: FreeBSD 14.1 and UEFI boot ignores bootme flag In-reply-to: <20240813070253.81DF5DD@slippy.cwsent.com> References: <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il> <20240813065020.8084E6D@slippy.cwsent.com> <9DEEEE5F-EC21-4CC5-BC5F-A10162D98365@cs.huji.ac.il> <20240813070253.81DF5DD@slippy.cwsent.com> Comments: In-reply-to Cy Schubert message dated "Tue, 13 Aug 2024 00:02:53 -0700." 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:13:27 -0700 Message-Id: <20240813071327.145CC75@slippy.cwsent.com> X-CMAE-Envelope: MS4xfKlR2J21xaH0OnNZx1gVUSGPc4Ib7Kcm9y9pKhaVkvheIxHKQ9E92vmXMVhhNlGLSkHjUHB86/NCDVGQib5Oc36KTOEJRMGpNTE7rsNHGFYOFVE0ZLUq aE85rm3jTd1C+1mT3me+qmzSM6FVi12Mp/xPZAwQ9tLgcfcYqi12zi8tXYcnelGBM2DNskk4XHgHIfjZGvSRnBgerCNlj2t2O6BOPnkDBUgG1Vz6tW8hZDAk X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.53 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.93)[-0.930]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[cschubert.com,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:3.97.99.32/31:c]; RWL_MAILSPIKE_VERYGOOD(-0.20)[3.97.99.33:from]; RCVD_IN_DNSWL_LOW(-0.10)[3.97.99.33:from]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; MLMMJ_DEST(0.00)[hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[] X-Rspamd-Queue-Id: 4WjjKP1QfFz4LNd If your rootfs is ZFS then you need to use loader.efi with the caveat that it doesn't honour the bootme flag. My UEFI systems are clones of my original systems. I use UFS root/usr with ZFS for everything else. gptboot.efi and loader.efi work equally as well in my scenario. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0 In message <20240813070253.81DF5DD@slippy.cwsent.com>, Cy Schubert writes: > 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 >