From nobody Tue Aug 13 07:42:20 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 4Wjjzb1GB1z5ScXd for ; Tue, 13 Aug 2024 07:43:07 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WjjzZ454xz4QWG for ; Tue, 13 Aug 2024 07:43:06 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (123-1-21-232.area1b.commufa.jp [123.1.21.232]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 47D7gKJo090778; Tue, 13 Aug 2024 16:42:21 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1723534941; bh=3NnnLUPNOiySlrWVmiSvSZBfYufxttdvc90LVDRJmVo=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=FbeXEWN8v1Ty886nUPJvjL6poyfxtEfWA0LWDxZHAd4dL14o2QgT1g5RmoGNHxF99 CMw8A5uG9H36u353hwO9dvjh6wVEzYtu3rtUHhlt8qmZAKYY5CsZDWO+Cu3m4Ffx7J CLllaXt7MXqoKtkqQalR+6OU95+tVS48l8EhqdMI= Date: Tue, 13 Aug 2024 16:42:20 +0900 From: Tomoaki AOKI To: Cy Schubert Cc: Daniel Braniss , freebsd-hackers Subject: Re: FreeBSD 14.1 and UEFI boot ignores bootme flag Message-Id: <20240813164220.dfb25825699fa2199aeafa29@dec.sakura.ne.jp> 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> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.1) 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 Content-Transfer-Encoding: 7bit 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:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4WjjzZ454xz4QWG You can choose which partition/pool to boot using boot1.efi with whichever of latest 2 patches at Bug 207940 [1] applied. As boot1.efi would be dropped in the future, I want the same kind of functionality on loader.efi, too. And related PR found: Bug201788 [2] [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207940 [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201788 On Tue, 13 Aug 2024 00:02:53 -0700 Cy Schubert wrote: > 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 -- Tomoaki AOKI