From owner-freebsd-stable@freebsd.org Sat Jan 26 04:00:28 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 7DFF314AED55 for ; Sat, 26 Jan 2019 04:00:28 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 23CFE8B163 for ; Sat, 26 Jan 2019 04:00:28 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id AF7D5DA16 for ; Sat, 26 Jan 2019 04:00:27 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lj1-f180.google.com with SMTP id t9-v6so10025854ljh.6 for ; Fri, 25 Jan 2019 20:00:27 -0800 (PST) X-Gm-Message-State: AJcUukf8HAq39KQB6V28klWEySKswikkKdWnANy125kCPiudMUCntI8a e8ejfRhRu1fIrOs+S3DXHN9x7WtjuyYT/BUCLTo= X-Google-Smtp-Source: ALg8bN41vgzJjrkxmRLD3FERFVjXRKRZlDm/4iteZKzgknUN4rzQIayUdnIv30qkdPxev5maunZVOyEbGITyOYkOjko= X-Received: by 2002:a2e:8006:: with SMTP id j6-v6mr10598951ljg.186.1548475226017; Fri, 25 Jan 2019 20:00:26 -0800 (PST) MIME-Version: 1.0 References: <7391812a-a2ad-874a-80c9-5a871a29f680@denninger.net> In-Reply-To: From: Kyle Evans Date: Fri, 25 Jan 2019 22:00:14 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Not sure if this is the correct place.... (laptop, dual-boot EFI) To: Jonathan Chen Cc: Karl Denninger , FreeBSD-STABLE Mailing List Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 23CFE8B163 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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 04:00:28 -0000 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 means > > 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 allows > 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.