From nobody Thu Dec 21 12:48:52 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 4SwqxL435pz54m0m for ; Thu, 21 Dec 2023 12:48:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4SwqxL32Tyz4FxQ; Thu, 21 Dec 2023 12:48:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703162934; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/ofeBCduUF3WvRWyBWPdZcEhqQPGVPqFDhn6eUqhBjU=; b=nkRn6dQ/5LLiRCQ6TDBVrg/f+UpjNRRs4LUTQlY/m2L4uXL9TUM+ZAldetevNw1EuRJUR1 HH3ZfS9Mygt6UZGaOHxR3PbVrzTJmowUy9SLbWYkRqzpTKfE+osqWgBFFVMOXk0/QYNCE4 zYMo4WYl/fAnL2PVT+EhNxLPeJOmK6FPeSH2mtsgWz3JEEU11wkyQU1cZmEaL7m3+glmuJ MkGCxo2v20SVwDapmIwX9uRGiDJUKBIUOqCYiN8tz6j4i3xYhXKI5uPq27aiNY7kOoXxsj ND+qa7JXCKQVeodYRvTXHk8QmdSs3KlVm74WBsnngqxnkfA2Cv7s32bUoG/oyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703162934; a=rsa-sha256; cv=none; b=sTdT6/zHphhCRWRtxZy8yAKDD/Sl4wHuXZIFWlPtzGSFDTrupg9yan+eym8wVtnbm9Qzv6 3R9Sxb1cp2uEIublKhWFvRQjSHdDihrzx0MVcQSVK1gnqz6gFGYVyO4C4sDKrkY4mcgtZT cdh1peNGzAs3GwI4nEdmBYgatlrDiyG5P6aabFlGTw//Siz+BxT/fQCOujJlcZ98gUb2Tm 60xFEhUsd1jgaNgVKw9EqIthd2w4LtvSxVXucPEbTnBxRTMZkpTGCwaYYowufGaeeDyMKZ j36g3o1pRKu0DfYDMYt7LQ+0JkLFjRoo0pwLGohkxcvovZTqVIjaUv25lQSzxA== 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=1703162934; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/ofeBCduUF3WvRWyBWPdZcEhqQPGVPqFDhn6eUqhBjU=; b=XVWJ1lSDTOPlU/XhQ4Wh1jSP6J1YiMsF1F9Jn+Nwp11gN8NKgSwKUsJ99uRySvd0UCVHXI yQiCrUgKkEDVveCv47REYYBaxupJkbprmpmBSrMCK0zZg+mkHbZB9Ed7WDcMHdVBuh5+s8 7KCxDfyaKA4/Mz+bfShzK9tMqgIZvjF//x6oI8Se77H5IAd7i6IJXzpyeqxf6Q8IX6z48x kXzJJXApUqu7kK0KskxwjJbVS6unO3ugph7IsQwTdP67N3/oYpNbd2OhT/edNprm/y4tIP 4VMyezVVT+aHa8DMAtgK0WdodSsA/S5zNJK9OVs9933HgCoN2qqcfhadcSledg== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SwqxL1PjRz17LQ; Thu, 21 Dec 2023 12:48:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E83EC4ED0E; Thu, 21 Dec 2023 13:48:52 +0100 (CET) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: symlink to /boot/loader.efi From: Dimitry Andric In-Reply-To: Date: Thu, 21 Dec 2023 13:48:52 +0100 Cc: FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <631DF939-4E18-4319-BE94-335E63B27B09@FreeBSD.org> References: To: Nuno Teixeira X-Mailer: Apple Mail (2.3731.700.6) On 21 Dec 2023, at 13:22, Nuno Teixeira wrote: >=20 > 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. >=20 > 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