From owner-freebsd-current@freebsd.org Tue Oct 8 06:07:34 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 72658139A1C for ; Tue, 8 Oct 2019 06:07:34 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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 46nRhj2j4nz4Q0s for ; Tue, 8 Oct 2019 06:07:32 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 26940210D8 for ; Tue, 8 Oct 2019 02:07:32 -0400 (EDT) Received: from imap36 ([10.202.2.86]) by compute5.internal (MEProxy); Tue, 08 Oct 2019 02:07:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.net; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=Q/s92SIshkzlcAdacbGrUDDZRNmc9hl 9Do9B9qwXM6k=; b=UtXLR1otoB0er64irzqTQS0c+VtwkV6oMk7P7hGQsMNbzYa f4ZxdgQN9tLyQw/bG/rgrkwrRUXeFAwS0NTRg62DoExBenNct75uy9oVqF+1PK3+ tPAXCFTxGbvWDdzLnaZfG77RYGnjyK2TOzb5LSVVO+Ws14uBIZ77F/6+gHW28/Wn fz0yfwRzOTTVUioxlS9p9Nze15zbceeuhIU7oK03vyAS9JrCaaSpe//E1fFir3Xw 6mMjAaazeq57bcAFeTERc+Oa7nGmVJKt9SD8RdVDpOVisKy8ak502Q34z088y5NZ 62k+9vCVYlbjeXj8RxiAAL6b5ZZC1FX1qPzqCGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Q/s92S IshkzlcAdacbGrUDDZRNmc9hl9Do9B9qwXM6k=; b=apOOlpgmRWUNbjmgoWHZ7L wucOXykRCWfUtwBg70HYjxExJ24QRRKyEy8RpuvfOjZHm0ab1HP3OW7gywXb0ki+ cl5gxhVptHR8XhxVplOYMJAOz2v2pMjCoA/dKDlDIJgmdrNi2p6PMNtEcHp8BvJF eKveer4+/n+qUDA8G76wIYOPvRAbNhHIuobQVgmKkmub8zzZyucnhaMAj/qhD9U1 7CB8LVIac+1wk+6jfYGE/d7yzX0D4kND2DE/dRKgU/o8XJaw3pzBGAOviiSlHeb/ XvITKVoHW4Gb+eEMYMxKTG4SYcChfLgVHK35Zy0t2HYydz0afcNnIfWDYP8POHOQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrheekgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfjghurhhiucfrrghnkhhovhdfuceohihurhhiphhvseih uhhrihhpvhdrnhgvtheqnecuffhomhgrihhnpehfrhgvvggsshgurdhorhhgnecurfgrrh grmhepmhgrihhlfhhrohhmpeihuhhrihhpvheshihurhhiphhvrdhnvghtnecuvehluhhs thgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9A646188005C; Tue, 8 Oct 2019 02:07:31 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-360-g7dda896-fmstable-20191004v2 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Tue, 08 Oct 2019 09:07:11 +0300 From: "Yuri Pankov" To: freebsd-current@freebsd.org Subject: Re: memstick installer doesn't install loader.efi into ESP Content-Type: text/plain X-Rspamd-Queue-Id: 46nRhj2j4nz4Q0s X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yuripv.net header.s=fm1 header.b=UtXLR1ot; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=apOOlpgm; dmarc=none; spf=pass (mx1.freebsd.org: domain of yuripv@yuripv.net designates 66.111.4.27 as permitted sender) smtp.mailfrom=yuripv@yuripv.net X-Spamd-Result: default: False [-5.07 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; R_DKIM_ALLOW(-0.20)[yuripv.net:s=fm1,messagingengine.com:s=fm1]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[yuripv.net]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yuripv.net:+,messagingengine.com:+]; IP_SCORE(-3.48)[ip: (-9.82), ipnet: 66.111.4.0/24(-4.86), asn: 11403(-2.68), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[27.4.111.66.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] 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, 08 Oct 2019 06:07:34 -0000 On Mon, Oct 7, 2019, at 5:23 AM, Yuri Pankov wrote: > Just tried reinstalling the system on my laptop using the latest > available memstick snapshot > (https://download.freebsd.org/ftp/snapshots/amd64/amd64/ISO-IMAGES/13.0/FreeBSD-13.0-CURRENT-amd64-20191004-r353072-memstick.img), > using UEFI boot, and default ZFS partitioning, and it didn't boot after > installation. Booting into the installer again, I noticed that ESP is > empty. > > Reinstalling again after wiping pool labels and clearing partitions > didn't change anything, though I noticed the "/tmp/bsdinstall-esps: no > such file or directory" in the installer log. > > Mounting ESP, creating EFI/FreeBSD/ directory, copying /boot/loader.efi > there, and creating appropriate Boot variable solves it, of course, but > I'm wondering what have gone wrong. > > Laptop has NVMe drive (nvd0, empty, gpart destroy -F nvd0), SATA drive > (ada0, empty, gpart destroy -F ada0), and is booting from USB memstick > (da0); no Boot variables defined when booting to installer (other than > defaults ones for laptop). Any other details I should provide here? I think I see the problem, bootconfig script uses ZFSBOOT_DISKS variable that isn't defined and always empty and auto-detection must be unreliable in some cases, at least for me as I reproduced it on another system with NVMe device adding a SATA disk as well (didn't look into the details). Should be easy to fix, review incoming.