From owner-freebsd-arch@freebsd.org Sat Mar 30 17:06:30 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 7327615585E4 for ; Sat, 30 Mar 2019 17:06:30 +0000 (UTC) (envelope-from wlosh@bsdimp.com) 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 BB8638FA16 for ; Sat, 30 Mar 2019 17:06:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.ysv.freebsd.org (Postfix) id 7F96815585DE; Sat, 30 Mar 2019 17:06:29 +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 5D6A015585DB for ; Sat, 30 Mar 2019 17:06:29 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F23CA8FA13 for ; Sat, 30 Mar 2019 17:06:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x833.google.com with SMTP id v20so5952235qtv.12 for ; Sat, 30 Mar 2019 10:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=et1HN7DwT/JyZLbP775T3iyUFGmQl0xx+NK+/h0gV2I=; b=g6/7Vkf8iyHZ2rIJcOXHS6XiGSxhkJo2h5Rf0YJeLu0WeC6s43MF6PO3W4n1CPl+Rt 1uufOz7Tmfa/zPgyZy1QovtVHSWj6Mny5kgKc84OLyiwmB7wW3a6OOxI2f5stWIRInSf Ell/aU6ddYb+l7HU6yPGc2K3UADHXdxyOoQhZONUIYAUSo1yQ708ezvzhUmzBKc25We7 bQG3XbFPYCPo+UDdvXTShuf7t8aTgFuB6WnJ4KZHRb5SAoangpUEYSiyBZWieGklKung jZp4LlRcUhpZ3RF4p1ZerKMLwhuWS/u15cd8nWqf9LUpxf0zx9nbCeGA+ECin6bVbFz/ NrhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=et1HN7DwT/JyZLbP775T3iyUFGmQl0xx+NK+/h0gV2I=; b=ZIXawJoaadBwkj/RKOwB/pUKERA5MhUgaJg27sCXrM9ZaQnN3fTM7PipTu2DCNrG/g 7ZU43zHUfeGSJj4g0sOdqpri+it+XTTbopcfpbUonInwMQEeoQbmN3SJEw+mOvqlwVsW 3tcBKGUJUJszLkP/P89CAwaPrBo8wNq4/D6w7Vv/2DsuyLmPC5q5jl59Mzb+2vDNfZGD gqj+9RB/gNrYVqqa6JnbpWvFpInLmcBXdd0Myb+D+7hpglYlRA2dj3NmF/0M2fiFkZ0C 8Y+81YmSVB3e5jlzajF+okzqB8+TGf7pjvXTL1XqpdvZXV1172prZEwB/pZTFirjNuYX 5BRw== X-Gm-Message-State: APjAAAVRiGnXddZ+VtJ8HxdKCo8qyhTyTgbDAbG3801fUqgvhBBqmWgT VsPg/nv16qQTTr6EQ4qgHkpf3MuhQITc4hvt57em4w== X-Google-Smtp-Source: APXvYqw+D95+G3+bXNsxb12Mpx73isbklS3fQNTeAlrc/qOoW4tYVtGpBRZwiuIfcV33ebVJ8gDCVDCVQTmOYaQrJLY= X-Received: by 2002:a0c:b501:: with SMTP id d1mr46600040qve.115.1553965588180; Sat, 30 Mar 2019 10:06:28 -0700 (PDT) MIME-Version: 1.0 References: <642fed43-0535-9ae3-6f01-a943650cd511@bluestop.org> <20190324090103.GO1923@kib.kiev.ua> In-Reply-To: From: Warner Losh Date: Sat, 30 Mar 2019 11:06:16 -0600 Message-ID: Subject: Re: Adding a new efi-update-loader script: need help understanding Makefile.inc1 for "make installworld" To: Rebecca Cran Cc: Konstantin Belousov , FreeBSD Hackers , "freebsd-arch@freebsd.org" X-Rspamd-Queue-Id: F23CA8FA13 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.95 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.945,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain; charset="UTF-8" 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: Sat, 30 Mar 2019 17:06:30 -0000 On Sat, Mar 30, 2019 at 10:25 AM Rebecca Cran wrote: > On 3/24/19 5:57 PM, Warner Losh wrote: > > > > He's asking for stopping doing a make install in src/stand. I'm thinking > > that's a good thing. We should update the ESP's \efi\freebsd\loader.efi, > > but leave the\efi\boot\bootXXXX.efi alone as part of this new > installloader > > phase. Again, only if the ESP is mounted, and we have a default spot for > > it. For this script, I don't think hunting for the ESP is the right way > to > > go... which means we need to define a standard place for the ESP to be > > mounted, which we should do before we turn on any of these features. > > > I booted openSUSE Tumbleweed last night on my ASUS ROG Zenith Extreme > board for the first time in a while and updated it to the latest > revision. This morning I went to boot into FreeBSD and the "FreeBSD" > boot entry had disappeared! Fortunately I have rEFInd installed so I > could select the "UEFI OS" entry and get back into FreeBSD, but that's > another reason we need to be really careful about relying too heavily on > the boot manager variables. > I understand that. However, boot manager variables are the standard, and are the first thing we should use. Having alternatives has already been established for the crazy arm environments that can't be bothered to implement write. There are limits, however, to how much of the crazy can be contained here, and how far we can go without hitting serious 'make a guess' territory that jeopardizes the ability to do something complicated for people that need to have multiple things that look like they might be bootable, but prefer one over the other (the most common case of this is nanobsd's ping-pong upgrade, though there are others). Do you know why the FreeBSD entry disappeared? Was it something that the BIOS did? Was it a bug / feature in openSUSE? You installer rEFInd, so maybe that did something naughty. It would be great to know how this came to pass by recreating it. But all of that is orthogonal to the ask that we separate out the boot loader installation from the world, which implies we need to finally standardize on an ESP mount point and likely other things as well. Warner