From owner-freebsd-arch@freebsd.org Mon Mar 25 00:54:16 2019 Return-Path: Delivered-To: freebsd-arch@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 41329154B2E2 for ; Mon, 25 Mar 2019 00:54:16 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AB39E700F8 for ; Mon, 25 Mar 2019 00:54:15 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6A0F1154B2E0; Mon, 25 Mar 2019 00:54:15 +0000 (UTC) Delivered-To: arch@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 2B0A3154B2DE; Mon, 25 Mar 2019 00:54:15 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [65.103.231.193]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9DEDE700F6; Mon, 25 Mar 2019 00:54:14 +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 2D77FC0AA8; Sun, 24 Mar 2019 18:55:17 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xkT3_JHVcEbw; Sun, 24 Mar 2019 18:55:16 -0600 (MDT) Received: from photon.int.bluestop.org (unknown [65.103.231.197]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Sun, 24 Mar 2019 18:55:16 -0600 (MDT) Subject: Re: Adding a new efi-update-loader script: need help understanding Makefile.inc1 for "make installworld" To: Warner Losh , Garrett Cooper Cc: Konstantin Belousov , FreeBSD Hackers , "freebsd-arch@freebsd.org" References: <642fed43-0535-9ae3-6f01-a943650cd511@bluestop.org> <20190324090103.GO1923@kib.kiev.ua> <5cda4bb9-c10e-2b44-65db-5a9f29f498d8@bluestop.org> From: Rebecca Cran Message-ID: <49d1a599-b479-edb1-a88f-48cae19b55af@bluestop.org> Date: Sun, 24 Mar 2019 18:54:12 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Rspamd-Queue-Id: 9DEDE700F6 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Mar 2019 00:54:16 -0000 On 3/24/19 6:51 PM, Warner Losh wrote: > > On Sun, Mar 24, 2019, 6:32 PM Enji Cooper > wrote: > > > >     I was wondering about builds from scratch, as well—images > completely lacking boot blocks like Jenkins builds. > > > You wouldn't run installloader on those. It's also a reason I don't > want to guess too much... The script as it is looks for partitions of type 'efi' which have a FreeBSD \efi\boot\boot${arch}.efi or \efi\freebsd\loader.efi, and if they exist it'll update them - the assumption being that booting FreeBSD already works, since it's been installed/configured via the installer or some other method. -- Rebecca Cran