From nobody Tue Aug 13 13:30:03 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 4WjshN38Dmz5SjBm for ; Tue, 13 Aug 2024 13:30:28 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WjshM6vrsz44M5 for ; Tue, 13 Aug 2024 13:30:27 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=BXlqQJfgw6LIxY+vjcIpEB5OYJ8CB4lsy3i65Fynw0Y=; b=XLfO9xOfhNznr0yHNUsEzwo35i4pCqFsfDZisYpOt3c0j7xqfgrjeHBBgQS7XlFHVU/+mucBF/Uu7qF5hzqGiW7a50DaMbxJ2LM7A+NN+U7Ql91x8WRoozR1xMStTRpQdn3K156P53Q0l/292tIKHTaePxXjfZNwKJMIpYNTVUwa+u6yUB7xBX5D1inEilSkctF50vW+5aUEKlY0PbFfDYYzSwvLeCTohPexq9FPt3xgSBVhieFn//IbOrAR1hCGa0C2TTCnHbVI6kCj1/UwhN8H0/pertm9F9pbxtl9MUyC2dyGxMXjeifb8IrXgIsB7MKFllZcZRvEJv1zwrE2Tw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=BXlqQJfgw6LIxY+vjcIpEB5OYJ8CB4lsy3i65Fynw0Y=; b=H3ZCWyMabdIvA4igRNrLWOlm6nCm7iZ7TUB/PNbyLasnkCMuASv96pzyCgnjGIVfaHQyEMesCD2fBIhGrtHWUs9avnK5q0EdcRQWT8WF04uw5a2F4Zu12R+KrPKWAXrog7ozIDhxeeww2eQMucBmfLnU3CnyMmnWvt6A5WynWAmT8Evlw1rVA3h6/Gfc1WNmQagg0rROxGAzXtKgJETAyB2bsIw6uS+1jTC+zmu7GRaJCL3nGjRcVgp/wLLnPO7Hb7PA3whdozG9Rst8We6RXirva1Yef+KJPfRNuRGT5oSuYGqOTcOz7XBGCT9k5q78B5BPK1k/YQQXUWAoTka15g==; Received: from imac.bk.cs.huji.ac.il ([132.65.179.42] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1sdrbU-000Oi0-7k; Tue, 13 Aug 2024 16:30:24 +0300 From: Daniel Braniss Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_2452C292-5739-4EA3-AE2C-FF1C0B7C3177" 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 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: FreeBSD 14.1 and UEFI boot ignores bootme flag Date: Tue, 13 Aug 2024 16:30:03 +0300 In-Reply-To: Cc: freebsd-hackers To: Warner Losh References: <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il> X-Mailer: Apple Mail (2.3774.600.62) 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:378, ipnet:132.64.0.0/15, country:IL] X-Rspamd-Queue-Id: 4WjshM6vrsz44M5 --Apple-Mail=_2452C292-5739-4EA3-AE2C-FF1C0B7C3177 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 13 Aug 2024, at 15:38, Warner Losh wrote: >=20 >=20 >=20 > On Tue, Aug 13, 2024, 12:11=E2=80=AFAM Daniel Braniss = > wrote: >> hi, >> my disk has 2 root partitions, and once I switched to UEFI = boot, can=E2=80=99t boot the second partition: >> (the hardware is a bit old, Dell PowerEdge R710 with bios from = 05/22/2018) >>=20 >> store-08# gpart show -l >> =3D> 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 >=20 > Use efibootmgr. Bootme flags are non-standard and have been ignored in = UEFI since the start. I read the man for efibootmgr but it was way above my pay grade :-)=20 I tried add/create but got nowhere. store-08# efibootmgr BootCurrent: 0000 Timeout : 0 seconds BootOrder : 0002, 0000, 0001 Boot0002* Broadcom NetXtreme II Gigabit Ethernet (BCM5709) +Boot0000* EFI Fixed Disk Boot Device 1 Boot0001* TSSTcorp DVD+/-RW TS-L633C =20 At some point I succeeded in deleting the dvd, but now I see its back. So how do I add a second boot partition? (If the sequence look fishy, it=E2=80=99s because I can change the boot = sequence via DHCP) >=20 > Or better yet, use boot environments. They are so much nicer than ufs = ping pongs. >=20 > Warner >=20 >> thanks, >> danny --Apple-Mail=_2452C292-5739-4EA3-AE2C-FF1C0B7C3177 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 13 Aug 2024, at 15:38, Warner Losh = <imp@bsdimp.com> wrote:



On Tue, Aug 13, 2024, 12:11=E2=80=AFAM Daniel = Braniss <danny@cs.huji.ac.il> = wrote:
hi,
  =       my = disk has 2 root partitions, and once I switched to UEFI boot, can=E2=80=99= t boot the second partition:
(the hardware is a bit old, Dell = PowerEdge R710 with bios from 05/22/2018)

store-08# gpart show = -l
=3D>        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)

it only boots from partition = 2.

so is there any magic?

Use efibootmgr. Bootme flags = are non-standard and have been ignored in UEFI since the = start.

I read the man for = efibootmgr but it was way above my pay grade :-) 
I tried = add/create but got nowhere.

store-08# = efibootmgr
BootCurrent: 0000
Timeout    : 0 seconds
BootOrder =  : 0002, 0000, 0001
Boot0002* Broadcom NetXtreme II Gigabit Ethernet = (BCM5709)
+Boot0000* EFI Fixed Disk Boot Device 1
Boot0001* = TSSTcorp DVD+/-RW TS-L633C   

At some point = I succeeded in deleting the dvd, but now I see its = back.

So how do I add a second boot = partition?

(If = the sequence look fishy, it=E2=80=99s because I can change the = boot sequence via DHCP)



Or better yet, use = boot environments. They are so much nicer than ufs ping pongs.

Warner

thanks,
        danny

= --Apple-Mail=_2452C292-5739-4EA3-AE2C-FF1C0B7C3177--