From owner-freebsd-current@freebsd.org Fri Jan 18 20:40:57 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 8D7A11481A4E for ; Fri, 18 Jan 2019 20:40:57 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1616272918 for ; Fri, 18 Jan 2019 20:40:55 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x0IKertS057312; Fri, 18 Jan 2019 12:40:53 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id x0IKermY057311; Fri, 18 Jan 2019 12:40:53 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201901182040.x0IKermY057311@pdx.rh.CN85.dnsmgr.net> Subject: Re: GPT boot has less features than legacy MBR-based one (Was: UEFI, loader.efi and /boot.config) In-Reply-To: <96BDA1B2-32FA-4FA1-AAD1-612BC3324373@me.com> To: Toomas Soome Date: Fri, 18 Jan 2019 12:40:53 -0800 (PST) CC: FreeBSD Current X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 1616272918 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [2.23 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.68)[0.685,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.32)[0.316,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: pdx.rh.CN85.dnsmgr.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.36)[0.355,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[me.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.01)[ip: (0.02), ipnet: 69.59.192.0/19(0.01), asn: 13868(-0.02), country: US(-0.08)] 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 20:40:57 -0000 > > On 18 Jan 2019, at 21:33, Rodney W. Grimes wrote: > > > >> > >> > >>> On 18 Jan 2019, at 19:57, Lev Serebryakov wrote: > >>> > >>> On 18.01.2019 20:13, Warner Losh wrote: > >>> > >>>>> Also, there are same problems with GPT/BIOS setup (which uses GPT but > >>>>> legacy boot) :-( > >>>>> > >>>> > >>>> What same problems? I don't think we've touched how gptboot has handed off > >>>> to /boot/loader in a long, long time. It there's an issue here, it's a > >>>> different issue. > >>> Ok, strictly speaking it is different issue with same "high-level" > >>> description: pmbr/gptboot has less features than simplest oldest boot0. > >>> > >>> pmbr/gptbood doesn't have any way to select partition to boot from, as > >>> "boot0" has. No, setting "nextboot" from live system is not a solution. > >>> I speak about NanoBSD situation when there is tow partitions, both > >>> bootable, one marked as "active" ("bootme" on GPT parlance) but it is > >>> completely broken and user need to boot from other one form very > >>> beginning. This task is trivially solved by "boot0" in pure-MBR case. > >>> What about GPT/Legacy and GPT/UEFI? > >>> > >>> -- > >>> // Lev Serebryakov > >>> > >> > >> errm.. you press a key and enter device and or loader path. if it is not working - the code is there to be fixed. > >> GPT does not have the concept of active partition. > > > > It certainly does, it is called the attribute bootme, > > and the above correctly states that. > > > > Shall you give the reference to specification?:) You can bury yourself in that paradigm, but the fact is even the wiki documents gpt attribute bit 2 as "legacy bootable, equivelant to active flag". > > I am very well aware about the ?vendor? attributes, and I guess You can make a difference about vendor extensions and specification? > > And regarding to GPT attributes, I personally would avoid writing partition table from the boot loader? I never advocated writing to anything from the loader. -- Rod Grimes rgrimes@freebsd.org