From owner-freebsd-hackers@freebsd.org Sat Mar 30 17:06:29 2019 Return-Path: Delivered-To: freebsd-hackers@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 5D82315585DC 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 F24048FA14 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 k14so6276916qtb.0 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=ASiLBR8TSpphp8Om6hhutauZTDWcohPsOH9jypD+rR3iELJ+6CuNgBGSh20LUJM6JR 8+ustZBlFzFyz3klls9bkDiX0fSiM+wflqrltFAxkmKaLyXFWG5TTXsLt0HZ22/cSOPv 4hhgGblxJLm1bHo72oc1P76l+SCMoXJmgPPfQk7InAc7JPmYTq24YQiEz/+oHTkXYwob 2r/+hStSOI4Rksw7TFxl+6tXo8B10pQ15Mn978fMFCkP8hNjKcQz4r3k5BOT6ojkEtTX Yagy7r+GxxfBDZa+VtmwwKyooVa4ndJ5vn2jbGrb0DpiFwbT4cnptPhHfY2HyySRtSQe VWuw== X-Gm-Message-State: APjAAAWvBigYmCsLcFqQqXxCGVrEsTpfWrknBY+SongKJBXIp4lpiR0K eX1yxZjokwe07gkNRccDsjutatoduAHMcuPiw2EOuA== 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: F24048FA14 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-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Mar 2019 17:06:29 -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