From nobody Thu Dec 21 12:59:54 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 4SwrBH10rmz54mDl for ; Thu, 21 Dec 2023 13:00:07 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SwrBG5dGnz4HZb; Thu, 21 Dec 2023 13:00:06 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703163606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K10Tx7k2GWIzJGwO+pXUjte18UgJXB0GM1og8hnbkMI=; b=hMQik2D+WjHr1tkwU4ShmGVpH3UYqBdmNCebO3g1/ssf3GC/TuvfyDgymFxBmKpzR3WcSZ uQjgITgFwWESjglbSmpJGzl+ddaGiOAyjwz7l/zAkDzqONObU+1C+3g3f0AmMVDPu3FaVS FthbFRE/vLd0Z+7WSzsUAaSjsS2VXDN6jmTBi0IaVLpXZGElgAmg8cnkCy1LLqy9R3YFtm +gzLYpyfPIqPqgIFY8PtKX/Nl3UYvsWbfbBLaz69tKiPCoLMZWi0jvjd3PB0oy/WKCsh/U hfM6SvuFD5AX3Fdqs7C9dLW7p9VsDwC+yeTzXCzNfpX4z2QTJJWSOxyME9Lbfw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703163606; a=rsa-sha256; cv=none; b=IT6fQ0nlOTaJjjYZ6XbTxNsZUdio5DYX6lPstjyVHMJyUmbwwOqcs7+MoKcsS0eYIIN3xF YnFbqHM7nzbpH3tkFQPnrsW/jiJCM2xtzhyNlzzKpqQfCpi9FMBvslDOm5+kmsmmY6Qxro DeE4z8bU9HGAQC5jTszkTjT8jQjqPpy9aribcOkr7F+nTT70iPImL83YdCJOMDRPjThSJV xF0r2XylTH3qM2p2Nw36bjB+hUZz4AXAiVi1P7iM6mQRH1MXDLiQ2DgbzvvNdzGA3ri62V 1YLpJ5uwSBagQpWi2S9ixplhK61cXIUaNMjHsQU39Sh9zaSQA5q87DeczkWH0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703163606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K10Tx7k2GWIzJGwO+pXUjte18UgJXB0GM1og8hnbkMI=; b=fiyhYkLStQZqhVZ5RdjqbxR6aVBM8P6cnXDigYJLuF/CBSSk320B0Vr8FGSp2J6gfCEw+X 92KJou3SeKocLsqRGxFEtdc81c4zFm6RpS6QsY4KIEa8J1VUdm6nzwbjuuLsagywxux5Ig iAXXKqeI4n2IleWUF098n+2SEssXjFBZ5pRavHk+/7QRrWm6bN/MaoNoTgIDKqeag+5JhD 9Tno/7PjPJdAYzqhOpScmigUALicNWww2D7+/CQOZzzxb0tNrZt2wiunDQZ3IylQIWYuJ2 vA2fFbJumXyVietPXuTgngROK8VTnmQ87kflzs5s3VdWDLuZQ13yS1HmqWY5gQ== Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SwrBG4WrNz171W; Thu, 21 Dec 2023 13:00:06 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f180.google.com with SMTP id d75a77b69052e-42792fe28c2so5539671cf.0; Thu, 21 Dec 2023 05:00:06 -0800 (PST) X-Gm-Message-State: AOJu0YwmXBLpQ1BwGZajwrVPgQNoo42GakkXXiLLclrDzR+z4JqnO6PZ 4PQIHTnHn4Z+P8b3jxT3gU8mBLeDEkg3QVMGok8= X-Google-Smtp-Source: AGHT+IE3260ZsOzWVkRuv1CHJJfO1DaIkFYynFAK2pRAjdN7qkKpmxTRegaJCzsxvW9iYxhcbgMQyR/rxz7PtsFRkqo= X-Received: by 2002:a05:622a:18a8:b0:423:a5e3:bbff with SMTP id v40-20020a05622a18a800b00423a5e3bbffmr969004qtc.33.1703163606277; Thu, 21 Dec 2023 05:00:06 -0800 (PST) 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 References: <631DF939-4E18-4319-BE94-335E63B27B09@FreeBSD.org> In-Reply-To: <631DF939-4E18-4319-BE94-335E63B27B09@FreeBSD.org> From: Nuno Teixeira Date: Thu, 21 Dec 2023 12:59:54 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: symlink to /boot/loader.efi To: Dimitry Andric Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000bf2524060d04ad18" --000000000000bf2524060d04ad18 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Dimitry, 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 automatic. Thanks! Dimitry Andric escreveu no dia quinta, 21/12/2023 =C3=A0(= s) 12:48: > 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 Nuno Teixeira FreeBSD Committer (ports) --000000000000bf2524060d04ad18 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Dimitry,

For a moment = I forgot that efiboot is a fat system...
I am inspired on what in= stallworld does to kernel and kernel.old.
I was thinking in somet= hing like it but with efi boot, something automatic.

Thanks!

Dimitry Andric <dim@freebsd.org> escreveu no dia quinta, 21/12/2023 =C3=A0(s) 12= :48:
On 21 Dec 2= 023, at 13:22, Nuno Teixeira <eduardo@freebsd.org> wrote:
>
> On every current upgrade I update efi/freebsd/loader.efi (amd64) and e= fi/boot/boota64 (aarch64) with new copies on /boot/loader.efi.
> For safety reasons I always have a copy of last running loader by appe= nding "-old.efi" to loader or boota64 and use beinstall to get BE= s 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 pl= aced 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 upgra= ding the real EFI loader through installworld. It would probably require so= me top-level Makefile magic.

-Dimitry



--
Nuno Teixeira
FreeBSD Committ= er (ports)
--000000000000bf2524060d04ad18--