From owner-freebsd-current@freebsd.org Tue Apr 30 16:57:59 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 EB32F1597DD9 for ; Tue, 30 Apr 2019 16:57:58 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17DF48365F for ; Tue, 30 Apr 2019 16:57:57 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1556643470; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=I/OfBvZL8OgjnKkLYaQoSaX+teStF2R0r/iZh0CtBNQZyo/KyDF6vn5a57r31gZrgNWHRfx3FqWBg Q2H8VEMT0Vd2uf5m3sfIjOvHe44haTj1J94CFRQ8NTKMDyPjTSJGyntKsEIYHhCyOibqAVBgOl8mpM N74L9bzA+mJAZU4s/v8dEzG7Om3WtMmtzpkDfbeIMHRf0ewyZtuPWjPpz84v8nwiMsJckjGZpxNaMV eYMTGOnTG2hymhS9uaxifutcm0B5GCvZhHJccV7hQ6owvzkCt8qd7c/I1mgmj8XxDau94TfQJQzbrY iiVLappelp2tLwfBLwwtHiazyNyIUUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=AVEsZQTEHs1vTWGDt9GdbB1Gh3sBY2A0isPQpmdFSZg=; b=sDPynbScn6Isx6b3+1hUut3j9IJ3FSLlM4Nb9FgdTkUcl5qhqVYt86rO6Ke0WKoQeBmBS/ZCm356/ L3fYXIKjc1zXCQLhh4So77/mi8mzKSTTlfcYJc+hkzYHQyoW+VjSpM3t9aBFzTDtZ9hftTCo6GUM/V rfAK6pX5KzXXSitoGI1GsgMozrIwF42X+XalvomiYOEf6+TIRbIjEWdG+l418hMGRr2siv5xWjMiZH e3M4oVg8Fz6WbbFaKG8uc1kC2iLNoeYEMv58lS49sFOySLhC9/f/8MKvqvS5xMHTREqqHNXKniRNS+ FUtjFro1nMfPyvmExeWurKJDD/QDpYg== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=AVEsZQTEHs1vTWGDt9GdbB1Gh3sBY2A0isPQpmdFSZg=; b=dqswBlhhgnuoQM7XeLuRFGbedgh6u7CAo5QHHpI9AgVN1PCOr0UTc5nee99+DyGv85V/ulNujvi75 bdAciTj7aSlekNxVngxqLy3+eUJTYwcWRbkP3sZZbNoI36DVDVn4ynzv2+CTqmvKyrtRix1CwJVMP/ go5MZGj5X9QXIA25/Hz+baKvv9T8ngWD9fp7jH13BR3ar8+OLoRacb1MI8T/C7d2sEd3qEMhCzyAuK 9PgufDfBhahYvQlkKW3GSwDLG4xZYkrtF4Siro7jTnU5EU9XGtM/x27ovHba8CSe8N43BUDfPT6B1g yOcms7T+rsBQ3lMYgYtvyqDRJLCTBNg== X-MHO-RoutePath: aGlwcGll X-MHO-User: 15a9ee4b-6b69-11e9-990e-673a89bc4518 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 15a9ee4b-6b69-11e9-990e-673a89bc4518; Tue, 30 Apr 2019 16:57:49 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x3UGvmhj007773; Tue, 30 Apr 2019 10:57:48 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: GPT boot has less features than legacy MBR-based one (Was: UEFI, loader.efi and /boot.config) From: Ian Lepore To: lev@FreeBSD.org, freebsd-current@freebsd.org Date: Tue, 30 Apr 2019 10:57:48 -0600 In-Reply-To: <1a19320b-2211-129c-b213-96601814e0d0@FreeBSD.org> References: <8DDD8F7A-40CA-48BB-9F71-56733100AFE0@me.com> <1a19320b-2211-129c-b213-96601814e0d0@FreeBSD.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 17DF48365F X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.979,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US] 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: Tue, 30 Apr 2019 16:57:59 -0000 On Fri, 2019-01-18 at 21:24 +0300, 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. > I am catching up, very late, on this old thread. What Toomas was describing does work, but it was broken for a long time. It got fixed in r341071 last November. I hate the syntax, but at the gptboot boot prompt (boot:) you can enter "da(D,P)" and gptboot will run loader(8) from that drive number D, partition number P, and (after r341071) it will pass that info properly so that loader(8) will attempt to load the kernel from the same drive/partition. IMO, it would be nice if "currdev syntax" worked too, so you could just enter disk3p4 or similar. I may look into adding that to the code. -- Ian > > 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. >