From owner-freebsd-current@freebsd.org Sun Jan 20 17:05:43 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 7368E149A761 for ; Sun, 20 Jan 2019 17:05:43 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (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 446076FC6B for ; Sun, 20 Jan 2019 17:05:42 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82e.google.com with SMTP id y20so20615607qtm.13 for ; Sun, 20 Jan 2019 09:05:42 -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=j5dRBXBzfqzdod7N8PuaRKvcFeaDE/qcsjnu7B0OECc=; b=yC6bXsD7puNSua1pj9qGrm0en3B075BSB0d2uaRApJk5X0okKhgmoMBqyeMPXMBKNI VB7DzjQaagZzlkltqpscQWW/9eT10q/TN7F976MMDivxEJlabArrk8o+npjFc70b6mAT SJ8SjV/nT/z63Hw6wvjFFbUvA0kgRZbwZ6lnCpHWRRFeTgX7TkIV05LTK4BR5xyYp9Im JwtdOHFkFmUVtEWFE6UasS7lpqreZg6OniZ/imS6K+uKmACyFCgoPO8yM9P41/VZprAA HGuTiQlBfFxMsuSbDSdNXwFodSsqQuZj1L4e+ZqN8wlP7li/5TeiYMINdl71nbRkKiSO PNWg== 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=j5dRBXBzfqzdod7N8PuaRKvcFeaDE/qcsjnu7B0OECc=; b=elEiI15JDJKnIN3OLsOhfi6DI0KJOvu5nPeEaNm4QOPWTIspYYEODKIxqaEqCOkIX6 kuE3gKwWn4NRat2Pky02SQNtyrXov1v+xCX0RtnRtYEHAB5YveGOlo2OUCUzcwCJAx+P bpAWOXmxBywBaCJH/+wxCSeRHeFq4gHqi7LEh9TTf1qmneRnxV0kLUBDT0CV2iVz0hXZ E34Qj63Abb+imiulWQcPnIMWa10P3nBoNObOfUV6xYmOXK6PL17srkNXctfSOkqpDg+1 018ilqk/3OWGYX0nrZdCM2mOGttjumzENjYrSUK2QelqNNbTcRdaFsh3zMeepBCzOXTG ts9w== X-Gm-Message-State: AJcUukcIod5ssXCQNmQqw+ABuEk3oDJf/f7egK5jip8Xs6e5ZXhICJ34 VAwowt9+iUlHHJkCoDlxY0hPFWV2tZGqjlia6aaE06Zy X-Google-Smtp-Source: ALg8bN5k1vGAhXNHcqV0TcIPvPlSgOo74IF70P6t3r0Dmz1FTunTiIaKdxogMuwAM/sqLbLPlCynVverc5/LN1ItH9I= X-Received: by 2002:ac8:7611:: with SMTP id t17mr22962238qtq.345.1548003941435; Sun, 20 Jan 2019 09:05:41 -0800 (PST) MIME-Version: 1.0 References: <912985968.20190119125228@serebryakov.spb.ru> <1951151017.20190119235425@serebryakov.spb.ru> <4636753.YNO7O01DYZ@photon.int.bluestop.org> <17710465740.20190120134042@serebryakov.spb.ru> In-Reply-To: <17710465740.20190120134042@serebryakov.spb.ru> From: Warner Losh Date: Sun, 20 Jan 2019 10:05:29 -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: Rebecca Cran , FreeBSD Current X-Rspamd-Queue-Id: 446076FC6B X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=yC6bXsD7 X-Spamd-Result: default: False [-5.43 / 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)[]; RCPT_COUNT_THREE(0.00)[3]; 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:+]; MX_GOOD(-0.01)[ALT1.aspmx.l.google.com,aspmx.l.google.com,ALT2.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[e.2.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.81)[-0.815,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.61)[ip: (-8.72), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-1.84), 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: Sun, 20 Jan 2019 17:05:43 -0000 On Sun, Jan 20, 2019, 9:29 AM Lev Serebryakov Hello Rebecca, > > Sunday, January 20, 2019, 7:27:56 AM, you wrote: > > > Ultimately, UEFI doesn't care about disks and partitions: it only really > knows > > about ESPs -- FAT12/16/32 formatted partitions that contain the EFI > directory > > structure. For now, that means /EFI/BOOT/BOOT{x64,i386,aa64,arm}.efi, > the > > Microsoft boot loader in /EFI/Microsoft and GRUB/shim in /EFI/fedora, > /EFI/ > > opensuse etc. > Problem is (for me), our code we put in ESP partition doesn't care about > several FreeBSD partitions and ability to continue boot from any of them in > simple way. set currdev=diskXpY: boot Is too complicated? Boot1.efi doesn't allow that, but loader.efi does. I have been said, that code in ESP partition looks and some EFI > variables (BootNext & Co), and I could "Set them in BIOS", but all this > thread doesn't have any clues HOW could I set them in BIOS. Need I EFI > shell > (which, according to this message must be installed separately!), or > something? > The EFI shell let's you select which .efi to run in a generic way. Most BIOSes have the ability to boot to this. There are multiple ways to do this. There are other things that could also be done, true, and it would be cool if we had it in the menu... So many things you'd want to be able to do you can. There are gaps we can fill in, but booting the FreeBSD on a different partition is easy today from the loader prompt... And I repeat for 4th or 5th time: subject is about GPT. GPT/Legacy has same > problem :-) > I don't care about that as much :). Others might, and I'd integrate reasonable changes here. I care a lot UEFI, and have put a ton of work into making it more than the most minimal thing to boot. Warner -- > Best regards, > Lev mailto:lev@FreeBSD.org > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >