From owner-freebsd-stable@freebsd.org Sat Jan 26 20:10:58 2019 Return-Path: Delivered-To: freebsd-stable@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 2E62A14AC867 for ; Sat, 26 Jan 2019 20:10:58 +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 5197F6B526 for ; Sat, 26 Jan 2019 20:10:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x834.google.com with SMTP id r14so14458386qtp.1 for ; Sat, 26 Jan 2019 12:10:57 -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=t4H4DNkadHuNxamY3e/LH6/c7MrAJ1fPTOKc4B+vQ6c=; b=GmyGWpuyb4HV5TpUavrgedHOBbq37noT8SCWLUy0cYNcjVw6pY/pLWiLCy9Rm2dTFf SAU7kYg7xSrY84KgfR5Gpp2M3eWfzyxadqxLuubIfCuWlM612bsxH3VlIy/TUhak0plf by3YyoqeqUDl6NjqD4kufVQPr/qmZCVcMwMQrmtdj0DAnS4y3x/NNTQMapzRcEEbZ9Gy TEBDYJpNT6mre00nL/9+Kf+lGOp+5dFE9FNgmrlhBDgr0/CVd/BDKpOul8uk2/KZlaN6 PpndG+8tvJGg/EP9MijOyj6IqP3U+V61QvGZpjaoN/zpB+mgtDbcYiQ9uWM5+xPNXIcQ qruA== 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=t4H4DNkadHuNxamY3e/LH6/c7MrAJ1fPTOKc4B+vQ6c=; b=ZiDN4Nx7iKdk2E+B7izRpLj0SfnO59n40X4QrnEi5r7fECz7Orv+BJu3yD11Ox+8Kr wawq8RbZGSk5+NqlVw4QjPaXMOk+rbRlPRC9s2XPGeuI0OroU8gukzmYwoZNZj+2dH2b KDZxE9gckJo/Ob/JmeAXOJ5cV/WRmjJefmx5G1A78yz8N82KN3LKkilSPkYsA29J2s3i oCgq75nvKPaZzd1ANflzWjQH0xfknzn2WwjvcpuXE5sXwcpDF5Ul7DSTY/VVO2LHPxLQ +yP6DUb9//AlNS612gqQ54lcLyTPEDNB8oOJ5Xrt4KQHP2E7Fc3kdfKj/LRo9YiaI48Z b7iw== X-Gm-Message-State: AJcUukc6f7Dcw3XPGvqH0wNfgtltyFQAYiljLIZOurtpHuaZq2g0ABwG AyhLx9dvkWDXj4jgtGWvIQ45+vfU5HUDKVbUlRxqkFxo X-Google-Smtp-Source: ALg8bN7HM8OwQ69S3dy/rXLngaagDBZsNWjjnpEFZZGQxuEj4T9pgLd6miu/ILOBOjsfYlepIyoKVgmmKX11Rc5BEw8= X-Received: by 2002:ac8:668c:: with SMTP id d12mr15349598qtp.242.1548533456560; Sat, 26 Jan 2019 12:10:56 -0800 (PST) MIME-Version: 1.0 References: <7391812a-a2ad-874a-80c9-5a871a29f680@denninger.net> <7a61c927-796d-ea1f-8dce-37e82fb6d646@denninger.net> In-Reply-To: <7a61c927-796d-ea1f-8dce-37e82fb6d646@denninger.net> From: Warner Losh Date: Sat, 26 Jan 2019 13:10:45 -0700 Message-ID: Subject: Re: Not sure if this is the correct place.... (laptop, dual-boot EFI) To: Karl Denninger Cc: FreeBSD-STABLE Mailing List X-Rspamd-Queue-Id: 5197F6B526 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=GmyGWpuy 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_SHORT(-0.65)[-0.654,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@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)[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]; 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.44)[ip: (-7.68), ipnet: 2607:f8b0::/32(-2.50), asn: 15169(-1.93), country: US(-0.08)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2019 20:10:58 -0000 On Sat, Jan 26, 2019 at 1:01 PM Karl Denninger wrote: > Further question.... does boot1.efi (which I assume has to be placed on > the EFI partition and then something like rEFInd can select it) know how > to handle a geli-encrypted primary partition (e.g. for root/boot so I > don't need an unencrypted /boot partition), and if so how do I tell it > that's the case and to prompt for the password? > Not really. The whole reason we ditched boot1.efi is because it is quite limited in what it can do. You must loader.efi for that. > (If not I know how to set up for geli-encryption using a non-encrypted > /boot partition, but my understanding is that for 12 the loader was > taught how to handle geli internally and thus you can now install 12 -- > at least for ZFS -- with encryption on root. However, that wipes the > disk if you try to select it in the installer, so that's no good -- and > besides, on a laptop zfs is overkill.) > For MBR stuff, yes. For loader.efi, yes. For boot1.efi, no: it did not and will not grow that functionality. Warner > Thanks! > > On 1/26/2019 08:08, Kamila Sou=C4=8Dkov=C3=A1 wrote: > > I'm just booting the installer, going to do this on my X1 Carbon (5th > gen), > > and I'm planning to use the efibootmgr entry first (which is sufficient > for > > booting), and later I might add rEFInd if I feel like it. I'll be posti= ng > > my steps online, I can post the link once it's out there if you're > > interested. > > > > I'm very curious about HW support on the 6th gen Carbon, it'd be great = to > > hear how it goes. > > > > Have fun! > > > > Kamila > > > > On Sat, 26 Jan 2019, 06:54 Kyle Evans, wrote: > > > >> On Fri, Jan 25, 2019 at 6:30 PM Jonathan Chen wrote= : > >>> On Sat, 26 Jan 2019 at 13:00, Karl Denninger > wrote: > >>> [...] > >>>> I'd like to repartition it to be able to dual boot it much as I do > with > >>>> my X220 (I wish I could ditch Windows entirely, but that is just not > >>>> going to happen), but I'm not sure how to accomplish that in the EFI > >>>> world -- or if it reasonably CAN be done in the EFI world. > Fortunately > >>>> the BIOS has an option to turn off secure boot (which I surmise from > >>>> reading the Wiki FreeBSD doesn't yet support) but I still need a mea= ns > >>>> to select from some reasonably-friendly way *what* to boot. > >>> The EFI partition is just a MS-DOS partition, and most EFI aware BIOS > >>> will (by default) load /EFI/Boot/boot64.efi when starting up. On my > >>> Dell Inspiron 17, I created /EFI/FreeBSD and copied FreeBSD's > >>> /boot/loader.efi to /EFI/FreeBSD/boot64.efi. My laptop's BIOS setup > >>> allowed me to specify a boot-entry to for \EFI\FreeBSD\boot64.efi. On > >>> a cold start, I have to be quick to hit the F12 key, which then allow= s > >>> me to specify whether to boot Windows or FreeBSD. I'm not sure how > >>> Lenovo's BIOS setup works, but I'm pretty sure that it should have > >>> something similar. > >>> > >> Adding a boot-entry can also be accomplished with efibootmgr. This is > >> effectively what the installer in -CURRENT does, copying loader to > >> \EFI\FreeBSD on the ESP and using efibootmgr to insert a "FreeBSD" > >> entry for that loader and activating it. > >> _______________________________________________ > >> freebsd-stable@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-stable > >> To unsubscribe, send any mail to " > freebsd-stable-unsubscribe@freebsd.org" > >> > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.or= g > " > -- > Karl Denninger > karl@denninger.net > /The Market Ticker/ > /[S/MIME encrypted email preferred]/ >