From nobody Tue Aug 13 08:00:46 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 4WjkN15Kn3z5SdXt for ; Tue, 13 Aug 2024 08:00:49 +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 4WjkN13rSFz4SSS for ; Tue, 13 Aug 2024 08:00:49 +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=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=rm/VjY4orHt/GjuOf2dEZgefosss6u8HpKQNJaBmkas=; b=NE+klgo4oxhjKtDv6oTOz8ZTM1Yu27ZBewwhM+ZefPma9wAx3JJr17+1O/RDBpggj5hx6uG7zt47jL9VQ4MK8vWMjCX4E6ChDMZLTKYZ6rDnwwHow/GYCXXGy8jpSDkjW3n9+4uMDJVZdGk5pQqvR21ezYojTfLZ0R616C4Tqe1Wb193IKF3eafqkmHAYqt5bDklQ3w3WXeH35h8CWbPJaohiNR/Ktx6eoR3Tps8dmp0t350j8ChoZtji0rl3Ac42Bmz6P/ih/tKYYJPRhkfRbRHPanfk8rU3oA0U/z2que3bfIJc1BJOgJvGUEZRgeD0XcO2tidvnrF2j+/kTjvYw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=rm/VjY4orHt/GjuOf2dEZgefosss6u8HpKQNJaBmkas=; b=yXhQTaCTgP4nVRXUUebAgEybiEEzluODWIOsmohorTmszz5ICqZj1NQhKEd61r9tJySt5yup3iVwyjknv+HEI8nGGk9sW+X8qf6Zv7yIoEA+Llhv68o4oThE9ciBtbcpnDzFWTFrfjN/+Y6935NAbKIjqXEM+kMWsPipUpC+8aMJSLe/a+F9UdfoskdjDgXZPFWZY/uPaKbomGA5QaRFl1Ln1WeRqAn/t6nrfoTVfAFg3i9aEdb553q/3EQ1YiqtbFmduzZuXFzBmX8eGBQ2+e26MPCfz+ZS9WvRJSRmTABgHObaBCxkNOWZJ/IHj4wFdHcO5KAtc4D/+3lzzO+2GA==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1sdmSU-000AVk-Cc; Tue, 13 Aug 2024 11:00:46 +0300 Content-Type: text/plain; charset=us-ascii 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 \(3696.120.41.1.8\)) Subject: Re: FreeBSD 14.1 and UEFI boot ignores bootme flag From: Daniel Braniss In-Reply-To: <20240813164220.dfb25825699fa2199aeafa29@dec.sakura.ne.jp> Date: Tue, 13 Aug 2024 11:00:46 +0300 Cc: Cy Schubert , freebsd-hackers Content-Transfer-Encoding: 7bit Message-Id: 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> <20240813164220.dfb25825699fa2199aeafa29@dec.sakura.ne.jp> To: Tomoaki AOKI X-Mailer: Apple Mail (2.3696.120.41.1.8) 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: 4WjkN13rSFz4SSS > On 13 Aug 2024, at 10:42, Tomoaki AOKI wrote: > > 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. same here, but it seems to be stuck in the past :-) > > 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