From owner-freebsd-current@freebsd.org Fri Jan 18 19:27:13 2019 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 EE53314A8943 for ; Fri, 18 Jan 2019 19:27:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 100BE6FA74 for ; Fri, 18 Jan 2019 19:27:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72f.google.com with SMTP id y78so8664097qka.12 for ; Fri, 18 Jan 2019 11:27:12 -0800 (PST) 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=Ya0IlOKpsrZrg9KPjpm9u7NWCsBZmNhPIedxJUzJRDA=; b=rZaaxDnRk83QZYrJdiO1PAScfif+otdsguCNa1teOUSnh7/8hMWwJEg8oBOGk9Eb70 Ax57TG3/KF3/6mS3FnmNnyV274oq6qzgE1iiMd/nra/ZA2eVGAHrnsZm1Pny1jMmqqrU Zvr3zQ15nE/9CHpK/hUHKcUmeVSFf9T4wY6vV58uWHU64mTrwox2HDOX8z/O9afMldj1 wZbZO26909kWfnXyIEU4nqxrMqB9KQ4u/AABznolGSfeBE15tNJo5kNev5jLEuDH2MOx AZPBgP27n9rxVYpQETheXlXxsODSS+kQdxWCH2yre/adxmKlhGT2V5SyCbzCTqFcSZTh clnA== 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=Ya0IlOKpsrZrg9KPjpm9u7NWCsBZmNhPIedxJUzJRDA=; b=R/KvWF1FQjDljk166JdVfcJcaeOC8UdvNkqWhFp73+mm7MkwR7IVw22xextSXR23qk 6J4CY3lVZ8jU2LsIAugXNjxiIJ5M6ML2gqIVmgBZk55KytCzjcXS455ZkJ6YvRBioQkc gSXjUZH4IYaDl/RkXwqlHOB9As8xCg8WkskHSqrv2ymPUqeRND1ljVZdLTuJHQpzisoX izu0EGifpO86ez9fRjoQtG0phLcIiHClf6PWWWHjhFFzLSJ02/EVrBKkXyqfpDnU+tv1 w2rLEftJLg/wMPin4tTR85zL/F4zLzzHiWH/kDTPsIcnVkomWfDFs/JbfM1gzSwu/4FJ uCaA== X-Gm-Message-State: AJcUukeu8jJmRUvuXI+fwHCJwGsPqhcdhF5gjcEv3GaAi0vZCSwfAmxi UrchXaxXsbRjFP/MdFjM4ZEvhifwv8geIaN0Nu0l3RYU X-Google-Smtp-Source: ALg8bN6oGcb7G5E2eB1UXGhrkQzeTSFkGmELnqEdXxsHETo6Z+rnRcGEw3G9ViXa36LITWSema799Yg6LqWPvPRd/6k= X-Received: by 2002:a37:6c05:: with SMTP id h5mr16268751qkc.175.1547839631249; Fri, 18 Jan 2019 11:27:11 -0800 (PST) MIME-Version: 1.0 References: <8DDD8F7A-40CA-48BB-9F71-56733100AFE0@me.com> <1a19320b-2211-129c-b213-96601814e0d0@FreeBSD.org> In-Reply-To: <1a19320b-2211-129c-b213-96601814e0d0@FreeBSD.org> From: Warner Losh Date: Fri, 18 Jan 2019 12:27:00 -0700 Message-ID: Subject: Re: GPT boot has less features than legacy MBR-based one (Was: UEFI, loader.efi and /boot.config) To: Lev Serebryakov Cc: FreeBSD Current X-Rspamd-Queue-Id: 100BE6FA74 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=rZaaxDnR X-Spamd-Result: default: False [-5.68 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.936,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[f.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-2.73)[ip: (-9.38), ipnet: 2607:f8b0::/32(-2.37), asn: 15169(-1.82), country: US(-0.08)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 18 Jan 2019 19:27:13 -0000 On Fri, Jan 18, 2019 at 11:27 AM Lev Serebryakov wrote: > On 18.01.2019 21:14, Toomas Soome wrote: > > > errm.. you press a key and enter device and or loader path. if it is not > working - the code is there to be fixed. > And loader looks to "bootme" attribute and try to boot from partition > which has one, even if it is loaded from other partition itself. > Correct. > > GPT does not have the concept of active partition. > It has "bootme" / "bootonce" attributes. And [zfs]gptboot doesn't have > any tools to set these attributes, AFAIK. Same for UEFI boot code. > gpart can set these. UEFI completely ignores them, though, because getting to that data is hard in the UEFI environment. But in UEFI, you're supposed to use BootXXXX and BootOrder/BootNext as managed by efibootmgr. Warner