From owner-freebsd-current@freebsd.org Sun Nov 4 21:20:18 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56B7610ECC42 for ; Sun, 4 Nov 2018 21:20:18 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5C775874EC for ; Sun, 4 Nov 2018 21:20:17 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id C99DA31597 for ; Sun, 4 Nov 2018 14:20:49 -0700 (MST) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 65W96GcSzO8k for ; Sun, 4 Nov 2018 14:20:49 -0700 (MST) Received: from photon.int.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA for ; Sun, 4 Nov 2018 14:20:49 -0700 (MST) From: Rebecca Cran To: "freebsd-current@FreeBSD.org" Subject: UEFI: How to go about updating the ESP with loader.efi during installworld Date: Sun, 04 Nov 2018 14:20:08 -0700 Message-ID: <5091656.8gLySxXtyI@photon.int.bluestop.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Rspamd-Queue-Id: 5C775874EC X-Spamd-Result: default: False [-0.04 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bluestop.org]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_SPAM_SHORT(0.49)[0.488,0]; DKIM_TRACE(0.00)[bluestop.org:+]; DMARC_POLICY_ALLOW(-0.50)[bluestop.org,quarantine]; MX_GOOD(-0.01)[mail.bluestop.org]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; CTE_CASE(0.50)[]; ASN(0.00)[asn:7922, ipnet:96.64.0.0/11, country:US]; IP_SCORE(-0.01)[country: US(-0.07)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2018 21:20:18 -0000 I'm currently working on creating and updating the ESP (EFI System Partition) for UEFI booting during installation and installworld. During installation, with my changes it gets mounted on /boot/efi and loader.efi copied into /boot/efi/EFI/FreeBSD and /boot/efi/EFI/BOOT. An entry gets added to /etc/fstab as noauto. The issue comes during installworld, where we'll need to update the loader, and I'm not sure how we should handle that. If NO_ROOT isn't defined, do we just "mount /boot/efi", overwrite the files then unmount it? What should we do if NO_ROOT _is_ defined? -- Rebecca