Date: Tue, 13 Aug 2024 11:31:30 -0700 From: Cy Schubert <Cy.Schubert@cschubert.com> To: Warner Losh <imp@bsdimp.com> Cc: Tomek CEDRO <tomek@cedro.info>, Daniel Braniss <danny@cs.huji.ac.il>, freebsd-hackers <hackers@freebsd.org> Subject: Re: FreeBSD 14.1 and UEFI boot ignores bootme flag Message-ID: <20240813183130.5FC04A3@slippy.cwsent.com> In-Reply-To: <CANCZdfp56NwHwiOkjxWEnfACyge%2BnHL0CiSnf_NL5MNswpdHTw@mail.gmail.com> References: <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il> <CANCZdfoqJkcgvG_oS_nQfQABvq8E5sQO7piggj_42Qf=6iA3PA@mail.gmail.com> <DC5F602B-894C-482F-9519-BB057B6DBB10@cs.huji.ac.il> <CAFYkXjk=W6Lsc9LXsFSuRmffGXwAn0nuiXf5kiu7yDXCumGg5g@mail.gmail.com> <CANCZdfp56NwHwiOkjxWEnfACyge%2BnHL0CiSnf_NL5MNswpdHTw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <CANCZdfp56NwHwiOkjxWEnfACyge+nHL0CiSnf_NL5MNswpdHTw@mail.gmail.c om> , 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 <tomek@cedro.info> wro= > te: > > > 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 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 <Cy.Schubert@cschubert.com> FreeBSD UNIX: <cy@FreeBSD.org> Web: https://FreeBSD.org NTP: <cy@nwtime.org> Web: https://nwtime.org e^(i*pi)+1=0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240813183130.5FC04A3>