From nobody Thu Dec 21 15:17:46 2023 X-Original-To: freebsd-current@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 4SwvFC4s5gz54v3V for ; Thu, 21 Dec 2023 15:17:51 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [IPv6:2a0c:5a00:149::26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SwvFC1m9Zz3C89 for ; Thu, 21 Dec 2023 15:17:51 +0000 (UTC) (envelope-from jbtakk@iherebuywisely.com) Authentication-Results: mx1.freebsd.org; none Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rGKny-001gvo-Iq for freebsd-current@freebsd.org; Thu, 21 Dec 2023 16:17:46 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iherebuywisely.com; s=selector1; h=Message-Id:In-Reply-To:Date:Subject:CC: To:From:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=mWIaQikrpoSzH5OG9qUnlTapFi1Jp5JykK/mZgc3lJU=; b=fuElmWgRv8SzbCZsGIoDu/TWBY AkcatHdzcJstAmi6Zrp1rUB/Nh5tCG5mq47RITWrenYiQA2Br9WvYDEgAAh8dDEjtlDl021eYzqjd 7LRncFlvpR3yuIpl1PPPV1AX9e7vORWReFnA0GGg9zRNHsOJfvPl1iARe42H6BE6GIjof9Ypw5EQ/ wAweJZCaCRblWPjqO0GUTS6pix6C7m0U/Ktnja91NXyVc9XVcV9YXD1SmebuShRxaE2ADUT5+48V9 eTyJ0MDEmcynC2nz70iDElFrvPhSEDWMXbt2PPKCAggGmtbk6qZuDj5w2CleXJv9Vph1kvix81fJx +ZoiAoyw==; Received: from [10.9.9.127] (helo=rmmprod05.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rGKny-0004AI-4x; Thu, 21 Dec 2023 16:17:46 +0100 Received: from mail by rmmprod05.runbox with local (Exim 4.86_2) (envelope-from ) id 1rGKny-0003yc-3Q; Thu, 21 Dec 2023 16:17:46 +0100 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Received: from [Authenticated alias (650894)] by runbox.com with http (RMM6); Thu, 21 Dec 2023 15:17:46 GMT From: "Jeffrey Bouquet" To: "Nuno Teixeira" CC: "Dimitry Andric" , "FreeBSD CURRENT" Subject: Re: symlink to /boot/loader.efi Date: Thu, 21 Dec 2023 07:17:46 -0800 (PST) X-RMM-Aliasid: 650894 X-Mailer: RMM6 In-Reply-To: Message-Id: 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:50304, ipnet:2a0c:5a00::/29, country:NO] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SwvFC1m9Zz3C89 I am wondering if all the information in this thread present and future sho= uld be included in the scenarios at the bottom of /usr/ports/UPDATING with technical explanati= ons about how and why? AFAIK the file was created before UEFI and thus in that regard= obsolete.=20 On Thu, 21 Dec 2023 12:59:54 +0000, Nuno Teixeira wro= te: > Hello Dimitry, >=20 > For a moment I forgot that efiboot is a fat system... > I am inspired on what installworld does to kernel and kernel.old. > I was thinking in something like it but with efi boot, something automati= c. >=20 > Thanks! >=20 > Dimitry Andric escreveu no dia quinta, 21/12/2023 =C3= =A0(s) > 12:48: >=20 > > On 21 Dec 2023, at 13:22, Nuno Teixeira wrote: > > > > > > On every current upgrade I update efi/freebsd/loader.efi (amd64) and > > efi/boot/boota64 (aarch64) with new copies on /boot/loader.efi. > > > For safety reasons I always have a copy of last running loader by > > appending "-old.efi" to loader or boota64 and use beinstall to get BEs = if > > needed. > > > > > > Is that possible to link, e.g., /boot/efi/efi/freebsd/loader.efi -> > > /boot/loader.efi ? > > > > Symlinks do not work on FAT file systems, so I assume you mean a symlink > > placed in /boot (assuming that is UFS or ZFS), which points to > > /boot/efi/efi/freebsd? > > > > At the moment I think installworld would not write 'through' such a > > symlink. In fact, it makes a hard link from /boot/loader_lua.efi to > > /boot/loader.efi, unlinking any previous /boot/loader.efi. > > > > That said, it would be nice to have some sort of semi-official way of > > upgrading the real EFI loader through installworld. It would probably > > require some top-level Makefile magic. > > > > -Dimitry > > > > >=20 > --=20 > Nuno Teixeira > FreeBSD Committer (ports)