From nobody Tue Aug 13 22:58:25 2024 X-Original-To: freebsd-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 4Wk6Hy160sz5TZQN for ; Tue, 13 Aug 2024 22:58:38 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (udns.ultimatedns.net [24.113.41.81]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ultimatedns.net", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wk6Hx4f8Vz4PQ1 for ; Tue, 13 Aug 2024 22:58:37 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Authentication-Results: mx1.freebsd.org; none Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 47DMwPow040638; Tue, 13 Aug 2024 15:58:34 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ultimatedns.net; s=mx99; t=1723589914; x=1723590514; r=y; bh=NZfPe31WHMWZV+BpRxia6hDTtELYZJXEVKfLP3e3v6Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=BEaU7XlvgpTSmqrsPNGodPW/uX9mfSLsAL9H7BLX7RI1iO2MnqPwS0eJJmjcrtoCI 6vS0tFSQ4yo1Fr4XMBkwb+a6PqKscCIrUzRXTOVVDM/BuG/7sn0tqbNBewEGsmeR7b bV3AK46JyoRR34Hn/n/9OqceigZwmPAl68bYOin4jc1owL+/Zfafawd+Zd+rWa6OAl IfhoefABvE3fGw3uZ/UqdtTu0ZMBAr7q49JRZdbi513W9D7yTWLcpF047eneFgIU+l SBWuhBWvBrSuHUOAv98WNzSIeSvGl62q+UG5wN7jqiGFszqkt/L6cGu/RrfD/CX0cI fDnFNK+MentMA== 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 Date: Tue, 13 Aug 2024 15:58:25 -0700 From: Chris To: Karl Denninger Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 14.1 and UEFI boot ignores bootme flag In-Reply-To: <4769f051-0ad3-4636-81cc-1e1563c43819@denninger.net> References: <0C0CF611-4C88-4EF1-9F9A-3A35D5236854@cs.huji.ac.il> <245d3286bba24340cd2c0abbbb5f3993@bsdforge.com> <4769f051-0ad3-4636-81cc-1e1563c43819@denninger.net> User-Agent: UDNSMS/17.0 Message-ID: X-Sender: bsd-lists@bsdforge.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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:11404, ipnet:24.113.0.0/16, country:US] X-Rspamd-Queue-Id: 4Wk6Hx4f8Vz4PQ1 On 2024-08-13 13:04, Karl Denninger wrote: > On 8/13/2024 16:02, Chris wrote: >> On 2024-08-13 10:23, Tomek CEDRO wrote: >>> On Tue, Aug 13, 2024 at 3:30 PM 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 :-) >>> >>> 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? :-) >>> >> I too found efibootmgr(8) unnecessarily cumbersome. So much so, that I >> ended writing >> a script to use it more effectively. >> In the end I downloaded a refind [1] image. Wrote it to a USB stick, booted >> it and >> installed it. It's dead simple, just does the right thing, and just works. >> Almost never >> need to futz with anything. I'm no stranger to (U)EFI or the boot process. >> But IMHO >> FreeBSD is not (average) user friendly in the (multi) boot department. >> Either multiple >> FreeBSD, or OS's. Maybe I should make a port out of refind, or get >> permission to integrate >> some of it into $BASE. >> >> 1.) https://en.wikipedia.org/wiki/REFInd EDIT: I meant: 1.) https://www.rodsbooks.com/refind/ >> >> I'm currently using the 13.3.2 flashdrive image on a 15-current install >> https://sourceforge.net/projects/refind/files/0.13.1/refind-flashdrive-0.13.2.zip/download >> I simply unpacked it, and performed dd if=./refind-flashdrive-0.13.2.img >> of=/dev/da0 bs=1m >> I'm booting FreeBSD, OpenBSD, Slackware, and Windows11 on the laptop I'm >> writing this from. >> In your computer setup; simply choose refind as your default boot, and your >> done. >> >> HTH >> >> --Chris >> > Refind is an excellent option if you have multiple OSs installed on a given > machine. > > If the intent is simply to ping-pong FreeBSD partitions then either what I > suggested for a UFS filesystem setup or beadm for zfs is easier and faster. I didn't see your suggestion before I replied, nor Warners. Both great advice. You may be right. But I still think there could be some improvement for the "average" user, in this department. Most of my work is on servers. So I don't really ever need to deal with this sort of thing. But when I do. I'm reminded of this. > Karl Denninger > karl@denninger.net > /The Market Ticker/ > /[S/MIME encrypted email preferred]/ --Chris