From owner-freebsd-current@freebsd.org Sat Jan 19 16:16:27 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 868BD1485AA3 for ; Sat, 19 Jan 2019 16:16:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (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 49854889E4 for ; Sat, 19 Jan 2019 16:16:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x834.google.com with SMTP id t33so18610185qtt.4 for ; Sat, 19 Jan 2019 08:16:26 -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=3x2H5s0PGHGFGKizb+zejWY1Lg0ssOA/5szhHOyCxpw=; b=GFf/End1Tkjj9RpV9Zqq6fpOV+ovazDOhFEUQ9gfnesmZqBKrhZtBQCnqbfutV4YhY byQibyHTMmj5dgJpegIrcw9NMVLzn7rAhgA6gEDu+Q5bL5EwwibJlZdpY5oFmMbWJPEy EdQQLby93nZBqYueBczkR9dAT37QiFDd/9jNSVbxPJFpAQmZo/g6UvANc6lVEVtsliA/ wGFBhelfR5+G+Nf2wU2uY+vBKygZKvkYvNLnoCXobCERCTj69+kb8MwCbKIx8OyCDzkY Yix2Uuuzn+gRyMItcih7YZn66KEUhC3iJ1yEqP2OF9sFBGmgzGS3xYUOVedIlEmV6xcX b42A== 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=3x2H5s0PGHGFGKizb+zejWY1Lg0ssOA/5szhHOyCxpw=; b=ggs6jJD256Pw4cGzQULt3XnRowGiCTkHAwTM3Ok4U/ypncpNgsPvan3hYpH+TbpPEH VVcXZlP9fZNULUIqBoayUGclp9voxzwwz6cTBD4q5c8K6KxYXfj4Q+vOl9S2nwBVkFxC ZpGVwzLULSafIm3KnG+eOxMP9fxWfdO6hu0lPvyct4noNLH78Bs3Q5Itq4aAw1umI9VO LzlsFOSAQDCUzv8xTtzwg5Dttzhvn0FBSu/Z59tPjdD8MGIMjJ6wB7zLrKwye6/+gWbA /gZCtsZjclf4ttZxvjH/rnSS2LggcRovFw/ECE5AevkNJ6GchrnL4EgEAMeULV+9QWEK UGbQ== X-Gm-Message-State: AJcUukd/xlTTroxFmrNa/K4a8X83EpCWSsCpritevApqxQh5jgkWkwrm RiupcqG/98u4WmssUsYoXAvonRuIDa1BkZ28BFyVDA== X-Google-Smtp-Source: ALg8bN6zINk1oIK9nZf27AK/h2QcgdStFkIv9BeXPgzVzz1OSjQX0jTp7AfxO3g/+UyP75ylSJV9qOiggILZyNJdDwk= X-Received: by 2002:a0c:9549:: with SMTP id m9mr20332766qvm.214.1547914585555; Sat, 19 Jan 2019 08:16:25 -0800 (PST) MIME-Version: 1.0 References: <201901191600.x0JG0FdL061207@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <201901191600.x0JG0FdL061207@pdx.rh.CN85.dnsmgr.net> From: Warner Losh Date: Sat, 19 Jan 2019 09:16:14 -0700 Message-ID: Subject: Re: GPT boot has less features than legacy MBR-based one (Was: UEFI, loader.efi and /boot.config) To: "Rodney W. Grimes" Cc: Rebecca Cran , Emmanuel Vadot , Lev Serebryakov , FreeBSD Current X-Rspamd-Queue-Id: 49854889E4 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=GFf/End1 X-Spamd-Result: default: False [-5.10 / 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_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]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[ALT1.aspmx.l.google.com,aspmx.l.google.com,ALT2.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[4.3.8.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]; NEURAL_HAM_SHORT(-0.72)[-0.717,0]; 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.37)[ip: (-7.57), ipnet: 2607:f8b0::/32(-2.38), asn: 15169(-1.83), 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: Sat, 19 Jan 2019 16:16:27 -0000 On Sat, Jan 19, 2019 at 9:00 AM Rodney W. Grimes < freebsd-rwg@pdx.rh.cn85.dnsmgr.net> wrote: > > > > On January 19, 2019 at 2:52:28 AM, Lev Serebryakov (lev@freebsd.org > (mailto:lev@freebsd.org)) wrote: > > > > > I have never seen such item in BIOS Setup. I've checked two MoBos now > (one is > > > Supermicro X9something and other is brand-new Goldmont-based Chinese > MiniPC > > > like Intel NUK): both have one knob in setup about boot type > > > (Legacy/UEFI/Auto) and if UEFI is selected, Supermicro MoBo (but not > Chinese > > > one) could be booted to "UEFI Console" which is not documented > anywhere. > > > > > > Ok, I've checked my desktop Asus Z170-A, but it is graphical and I > could > > > not find or understand anything in this home-rown UI with crazy-fast > mouse. > > > > > > > On ASUS systems you normally press F8 during POST to bring up the boot > menu, and F11 on Supermicro systems. > > ASUS should learn to put that stuff on screen... like everyone else. > I've been hitting the delete and going to the bios/boot tap which > also has a boot selection screen on one of my machines because I > did not know F8 existed. > I've been generally reluctant to add old-style boot0 selection to UEFI stuff. The BIOS already does it, so we don't need to. I've not needed it at all. However, we start the boot in lua. We already allow an interruption of loader.efi, so it would be super easy (assuming we got the lua bindings right) to implement something that would show you all the BootXXXX envs and let you select one to boot instead. We already have the ability to interrupt the boot loader. It would also be trivial to implement a 'efiboot XXXX' command to give that to you in cli mode. Both would set BootNext to XXXX and exit. We already have a menu, we could just add it to that. This would solve the hassles people are having with their BIOS (either because it's incomplete or hides the functionality too well) and would obviate the need to make boot1.efi do the selection (which has issues of its own due to boot1's limited scope). The only drawback here is that we'd not be able to create new boot envs in the loader, or you'd need to create a new one if you haven't yet run efibootmgr(8), but if that's really an issue, someone will write code to cope. Warner