From nobody Tue Aug 13 17:36:32 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 4Wjz8c1nXLz5T6gF for ; Tue, 13 Aug 2024 17:36:48 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wjz8b3jtLz4bHL for ; Tue, 13 Aug 2024 17:36:47 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2cd34c8c588so3876109a91.0 for ; Tue, 13 Aug 2024 10:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1723570604; x=1724175404; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=l+Eh85S8xtjsAF1S0B086GpCLgfY6a741VcHJxh5R1Q=; b=jJeNGAPKtr483UPIPnhatlLXEuU1U35CelRHvCmzlStXx9qIPpB0Z1+3UbAKd3bxmC 2hteVL6DQnjB5RIL/NVKhcLV28Q2Ah7zBM7QS5JC1P18vuIAVKBg6p6p97lxHsQ1X6ZY IJUPdYAPFGXSD/xMDiJrGCDqytW7exokH71abwlqEmdrijvQPK3FX1AAmsiItLF6hiZS GZz5e4VrE3gRwXrAS+tiM5Y6c3+xTwwP2p5UjjOuPspfmxVcIISmWhsyFZ00AGT/WYKg axdPrtJ68oJZS/SJMuPwguscksTFmL3e39GKbpe0791runeDSd+obFJ7+BXQmj6/uUGl LeqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723570604; x=1724175404; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l+Eh85S8xtjsAF1S0B086GpCLgfY6a741VcHJxh5R1Q=; b=qu8h5w0H7yADvIzNDigQAuFDXwiWtRzcgZknRFr59qoZmRocay4v+D4IAJ8s93gPIS 1HIv28Y8tKOgPmi6ST4uDM9mYTNWlrKaFrYzuzuBcd6+oNr/WP8ZriFUIMPe4rEQcNe8 7z0hpJgJZVDtaoYFZD1ERykMX3EjT/47t9bFWTXAZt3Vx9CCjpDekIIqiQxh6mcdl61r XW+tBzXppJnBt3Dv/KhQW0BgrMqQ+n4N/YPNFNz3eLrmJPuBFAuXEEVVXmsrUcYERhox 89CKcV1waNYyDtXg1AglUpqrumMUrN7nL5hidaaZqgOjnVR4czvlwoybydMx3J5VTj0s IWdQ== X-Forwarded-Encrypted: i=1; AJvYcCVToo7BL8+GNQ2Cd1lEAa4Z0z4/jj/7/fWICb8YfVI0KtDm53Tt+xgGtuNwrdbuIgWESOHv+qn0dgvrka8unK8/ajtD X-Gm-Message-State: AOJu0YwGkp5K3cvDJlWHrPQbXLhV/OKXDzUNwVnEsFE2/SzzZZ5I1DMp 232p3x7ZwhqXixIewGPm69ha+Ir/CDgDO8jg3MuWAkd4f2tRUGb1bK5/PCpU5J9wsA9osKbiI8L 6VLRBgS1n2gJi/RnoWuftjhot5ng5FVcXSqPj6A== X-Google-Smtp-Source: AGHT+IGSxWPXCCnJfazgEMn0VSDeL2ci71R99VN83RMFK9xaZ7TceYAVVgQD+44YaZtivEooIO8TfJEsua4JWpHTsKQ= X-Received: by 2002:a17:90b:4a89:b0:2c9:7e9d:8424 with SMTP id 98e67ed59e1d1-2d3aab601c5mr262593a91.30.1723570603703; Tue, 13 Aug 2024 10:36:43 -0700 (PDT) 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 References: <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il> In-Reply-To: From: Warner Losh Date: Tue, 13 Aug 2024 11:36:32 -0600 Message-ID: Subject: Re: FreeBSD 14.1 and UEFI boot ignores bootme flag To: Tomek CEDRO Cc: Daniel Braniss , freebsd-hackers Content-Type: multipart/alternative; boundary="000000000000945ac2061f940ddc" 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Wjz8b3jtLz4bHL --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 > 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. Warner > [1] https://sourceforge.net/projects/refind/ > [2] https://sourceforge.net/projects/cloverefiboot/ > [3] https://libreboot.org/ > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > --000000000000945ac2061f940ddc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Tue, Aug 13, 2024 at 11:24=E2=80=AFAM = Tomek CEDRO <tomek@cedro.info>= ; wrote:
On Tue,= Aug 13, 2024 at 3:30=E2=80=AFPM Daniel Braniss <danny@cs.huji.ac.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 ne= ed to specify the partition
to boot off of. That's the ideal = solution.
=C2=A0
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 s= etup.. 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 wil= l likely remove it in the future.

Warner
=C2=A0
[1] https://sourceforge.net/projects/refind/
[2] https://sourceforge.net/projects/cloverefiboot/
[3]
https://libreboot.org/

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
--000000000000945ac2061f940ddc--