From nobody Tue Aug 13 18:31:30 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 4Wk0Mp5WFVz5TBbb for ; Tue, 13 Aug 2024 18:31:34 +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 4Wk0Mp01Y9z4kfX for ; Tue, 13 Aug 2024 18:31:33 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTPS id du6BsGfD4MArNdwIvsIIRJ; Tue, 13 Aug 2024 18:31:33 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id dwIssB8GUE0IVdwItsBiNL; Tue, 13 Aug 2024 18:31:32 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=cI9DsUeN c=1 sm=1 tr=0 ts=66bba684 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=yoJbH4e0A30A:10 a=GUfD1UccAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=nX57vxptrcGdyhsUQ7IA:9 a=CjuIK1q_8ugA:10 a=-EiQn41SfbDD0E51JUit:22 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 669291C7; Tue, 13 Aug 2024 11:31:30 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 5FC04A3; Tue, 13 Aug 2024 11:31:30 -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: Warner Losh cc: Tomek CEDRO , Daniel Braniss , freebsd-hackers Subject: Re: FreeBSD 14.1 and UEFI boot ignores bootme flag In-reply-to: References: <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il> Comments: In-reply-to Warner Losh message dated "Tue, 13 Aug 2024 11:36:32 -0600." 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 11:31:30 -0700 Message-Id: <20240813183130.5FC04A3@slippy.cwsent.com> X-CMAE-Envelope: MS4xfOzuzNcGDUusikUho5jJbhvjlOATlX3+MKzrtoaMIWIH/aRp2Y61BhGVUI10QDuIitcxQe5Rka4nANI6HJkGL/WRZZB2AC6cHsuvoegjGdiY0ZI2NcYv TT+ThoznSIErs7qudSU/xJjZuNdGKicZCksmxDR1wr2P2u/N/U1LcdnNaq9Rk8+xgN+a9aBCKnw1bmqc6Md1npC6bq52PNI50aphNUSVOJoZUA/nLrbX8lJp bxxBhSY1D7aysu3bbaREGNWY29gILHbvjct9WZg2WFu42+vTiKEs36vvpsEzfsm7 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: 4Wk0Mp01Y9z4kfX In message , Warner Losh writes: > --000000000000945ac2061f940ddc > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > On Tue, Aug 13, 2024 at 11:24=E2=80=AFAM Tomek CEDRO wro= > te: > > > On Tue, Aug 13, 2024 at 3:30=E2=80=AFPM Daniel Braniss il> > > wrote: > > > (..) > > > At some point I succeeded in deleting the dvd, but now I see its back. > > > > This may be added by BIOS / Setup :-) > > > > > So how do I add a second boot partition? > > > > Use efibootmgr as imp suggested and add another entry with desired > > boot information, you may then select this new entry as the default. > > It will show up in BIOS / Setup menu and you can change order over > > there.. but the entry needs to be added with efibootmgr :-) > > > > yea, efibootmgr -k is what's needed. You'll need to specify the partition > to boot off of. That's the ideal solution. > > > > No worries I had the same problem too some time ago, also found > > reference to bootme flag which did not work (should be removed from > > man pages?). Now I sometimes use F8 at boot to select different system > > to boot.. but there are good looking menu like bootloaders for UEFI > > like reEFInd [1], Clover [2], LibreBoot [3]. Maybe we need some more > > documentation on this? :-) > > > > These might work. bootme is only documented in the BIOS loader man > page... > > There's also an unsupported, may go away in the future gptboot.efi > that you can use if you really must use this setup.. We use it for bootable > USB drives at work, but if it doesn't work for you, I'm not sure I'd fix > bugs > in it. > > However, we're moving to ZFS only, and we've found ZFS BEs to be way > more flexible and will be the way of the future. As such, I've stopped > maintaining gptboot.efi and will likely remove it in the future. loader.efi also works with UFS. My rescue disk contains: slippy# gpart show da4 => 40 1953525088 da4 GPT (932G) <-- /boot/pmbr 40 472 1 freebsd-boot (236K) <-- /boot/gptboot 512 532480 2 efi (260M) <-- /boot/loader.efi 532992 4194304 3 freebsd-ufs [bootme] (2.0G) 4727296 12582912 4 freebsd-swap (6.0G) 17310208 4194304 5 freebsd-ufs (2.0G) 21504512 4194304 6 freebsd-ufs (2.0G) 25698816 41943040 7 freebsd-ufs (20G) 67641856 1885883272 8 freebsd-zfs (899G) slippy# This rescue disk (USB) boots on UEFI and legacy systems. (It contains enough tools and backups to restore an unbootable system to a bootable state.) -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0