From owner-freebsd-current@freebsd.org Sun Nov 4 21:51:51 2018 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 61A8110EE49D for ; Sun, 4 Nov 2018 21:51:51 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) (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 7C5DB89762 for ; Sun, 4 Nov 2018 21:51:50 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-yb1-xb30.google.com with SMTP id n140-v6so3035665yba.1 for ; Sun, 04 Nov 2018 13:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=95WWHMNGeNwf8C0riL8nGT7SNiKhWKl5AKu2dS3ufsc=; b=PzczDQMZBF0gPQ4TBixYs4cblPesrUhFybwVYURIU0vuFY67gftBL6nxerTiihE1Jf HWx9UlBO5WYMRCTkhHWQYNvqIxAzoieDajR3QJx5v3P6dRFrZsz5K5oCjOYoDO2PBR6i fw7gZbsP+hmn/wcu35EBk5gKRrhwjYWcPElnjOprhFel8nh7f9YwqHU0vuO2oNTcAfyu 8u9ILJ/OjRV6e0kzT83aGbJMkVkdoDtaewK/2AqA/ERUB9+gf3MvGBwpTZMfqZ+i8TdF 8QZ50bSAlkkkXklt4HNcTH9AkPg85c4uG+dQqcs+ggVG2lDmmzTFIQaMRyh1x0BXxlM6 tjNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=95WWHMNGeNwf8C0riL8nGT7SNiKhWKl5AKu2dS3ufsc=; b=mRbX1p7s8g/WkZz8tHrgObniTCHVsryLfteJJnHg5uopRfT0q36NBtwdJ8LfngycSk 6UrcFQUB04s1HzjcaZDzypMApAf9tJhCCs5s9VLjTmAYF+CRKzo+Q8PNwjq8QShCvQ1J EaHlUdONJ42Y9gtwlsa40OeuXdmF7zDgn1tE9QOhAR6k8uawk7TvusCkOfSKcrPtriIl MlyKKPjNbCgsbbzHUQj3FhyU1nBATEMTFIU6wjYQpwHGnDOK/N1wE5h5pM8naU+Gp/gc KUDiGmxDox+P2RNrjsXN+pZ1InbzRbNQ1P2Db3HOv+7VzYeZjOhGku0UFSrIov/W9h4J 3xLA== X-Gm-Message-State: AGRZ1gIfzPzgbUCy1qa4YXEd4kKXRJorHH5wKvUjJnc9ZcNW8n7ay1xn WNxqmaxmwaJ+duu/Q/6uozBJhyVJgdq7TZGE/ieGkg== X-Google-Smtp-Source: AJdET5dcCHmJmNpghGNRvLGCekCuS7QN0+Aq0FssIE472ypscmU1qKdiky47EHoMS38ZxhNGMj//2w49FYXHyfvV4R4= X-Received: by 2002:a25:4f05:: with SMTP id d5-v6mr18951719ybb.158.1541368309620; Sun, 04 Nov 2018 13:51:49 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a25:b901:0:0:0:0:0 with HTTP; Sun, 4 Nov 2018 13:51:49 -0800 (PST) In-Reply-To: <1713323.u6MfGjpqfb@photon.int.bluestop.org> References: <5091656.8gLySxXtyI@photon.int.bluestop.org> <1713323.u6MfGjpqfb@photon.int.bluestop.org> From: Oliver Pinter Date: Sun, 4 Nov 2018 22:51:49 +0100 Message-ID: Subject: Re: UEFI: How to go about updating the ESP with loader.efi during installworld To: Rebecca Cran Cc: freebsd-current@freebsd.org, Toomas Soome Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 7C5DB89762 X-Spamd-Result: default: False [-1.07 / 200.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com,aspmx.l.google.com,aspmx2.googlemail.com,alt2.aspmx.l.google.com,aspmx3.googlemail.com]; RCVD_IN_DNSWL_NONE(0.00)[0.3.b.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.37)[-0.372,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.19)[ipnet: 2607:f8b0::/32(0.29), asn: 15169(-1.17), country: US(-0.07)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Server: mx1.freebsd.org 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, 04 Nov 2018 21:51:51 -0000 On 11/4/18, Rebecca Cran wrote: > On Sunday, 4 November 2018 14:36:13 MST Toomas Soome wrote: > >> it is reasonable to have efi/freebsd directory, the efi/boot/bootx64.efi >> is >> hard one of course. But then again, it is problem only when we can not >> setup EFI bootmanager variables ? the bootx64.efi is default when bootmgr >> is not set up. > > Yes, I think we should only create efi/boot/boot{x64,ia32,aa64,arm}.efi if > it > doesn't already exist in which case we're likely the only OS on the system. It's a totally working scenario to create OS specific directories on the ESP: root@opn ~# efibootmgr -v BootCurrent: 0000 Timeout : 0 seconds BootOrder : 0000, 0003, 0001 Boot0003* Windows Boot Manager HD(1,GPT,86fcd8f6-3db7-11e8-ad9f-34e6d749b944,0x28,0x200000)/File(\EFI\Microsoft\Boot\bootmgfw.efi) ada0p1:/EFI/Microsoft/Boot/bootmgfw.efi /boot/esp//EFI/Microsoft/Boot/bootmgfw.efi Boot0000* HardenedBSD 11-STABLE PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0x1,0xffff,0x0)/HD(1,GPT,86fcd8f6-3db7-11e8-ad9f-34e6d749b944,0x28,0x200000)/File(\efi\hardenedbsd\boot1.efi) ada0p1:/efi/hardenedbsd/boot1.efi /boot/esp//efi/hardenedbsd/boot1.efi Boot0001* UEFI: TOSHIBA MQ02ABF050H PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0x1,0xffff,0x0)/HD(1,GPT,86fcd8f6-3db7-11e8-ad9f-34e6d749b944,0x28,0x200000) VenHw(2d6447ef-3bc9-41a0-ac19-4d51d01b4ce6,20002000200020002000200020002000200020003100200053003800500054003500460054004b000000) The above is how my esp looks like. In EFI I have two entry: one for HardenedBSD and one for Windows. This functionality isn't yet implemented in the installer, but it's possible to made them by hand. > > -- > Rebecca > > > _______________________________________________ > 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" >