From nobody Sun Sep 8 02:38:47 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X1Z0k3qFfz5VWtN for ; Sun, 08 Sep 2024 02:39:02 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4X1Z0j1TmVz4jlZ for ; Sun, 8 Sep 2024 02:39:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=th279pu5; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1725763138; bh=PztBMvLN+6OuH6iXmP/ote3mSnU8jYgAvC5i1RkXuH8=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=th279pu5+WhLFWeLoNTQY2mmKT3GUyNXm3ElAtT2cSuQV42FdqaCmM8TH5q5xfufKeKBkrMy8eOjX/+DuTKtT5fRWLqCMkFSXLRz0veBAsNVRDV2MuvQ6tmzZj3PgpnQi9E/nTu2DPbRPB6wksa3K7cqxURz5DFy9HOOXRKD/irILg/qmKIo4sBAaz4AkzvfPwfqRqyJzHAZeLHhmxXZWwt3y47ZvSequVp2XzHSI8qNFEQotuxyeVVNor1Zc7Wof9BAwveaYghxrYVSeE8DwGRtQntYSLx/kHrp2c2//IRnCMNpbzvXRtWBNa9b3l4MPKOWfiVFFHh62czioCfnzQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1725763138; bh=hIjW2RQl6cGJ3YAgeD9qZXcugqtnnO8s3cl4zYns2CQ=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=nQNhLb0SMuwiwAngpug7Fw3oQ1109uM11EaruEbyeX0llj72vcoyxiRDEeeGxd8ZxsqOfQFT2HN20rKVFEoX93jksqNM3DG/7P8fp7y5pMc9kW2KlbO8eeo2hAiGulhqxQxr/QP011yvs79gSFk9sMYd6JDRmgu2baO+PNi6rbd/fv4EotXvc5/MQGglLtYf88Ea4dzDTIymsV1/VHSxY59q+0NkP+oOrRagbG/Z4spQLAlDKBwYVDMXj/xFX1bP9OKPnByeSpzLlvnXxUWvazXKDgvHjmiW5NqgNJSk4jRT7av4oMMP+3lL9MYMhf/6bfvUBts6WpBZU4PQ1MYNag== X-YMail-OSG: wL5ShLAVM1mgF3.AkuDH4d_C9ctQDmjBYkpBA5naJQVNAzlEnuD8ENvkmsD7eMc xuks_19VvcCe7qDfRRSFbBl8RRNBMoUj4IrGsgCMxiZNIMI0GCjxyxma7rg4.vk6NH8QuNFE3cUE 2v44bkFgIkaTd29u5v0rdrxoaHn9ZGesJFBY3P8gQQC2HGeOyl7g5Uqg7Gpfkt2NqlOS2KAeBfa0 P5zbZoO2IGVPlm4y3cE9a46XzyHo2upAf7Hl58Xj7v4mtrlxW.ePofyXVvWYnxicss0cXpDj23xT exti.L3n.Neg7BcjOL658KSxyAalwOAkxmj4QHtx_OV.dDMrv2hUDhAm82uOBAjJaZISzclFzalG 1rzs8o9JTiVr3jWUcIUMETexfho530v8mv4M8S_1SDdCHj4r8Iwe9DbLkBDupDK28tRgRr227G6X rWxZHDeMm65wpXgGDPTiZW_a7PuO2kxqBLkgUWzfyu_nitfiXqmXJNVnF8F.h20E43zBxwZlRTd2 WZDzTgUqzQIkEUe9AyckcUGGn5EXlFW.HX6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GZCqrcLoOLLLllOpO2QtTlcbyO61H dykVJfWY98_SOiIhKa338lJC4YLTRc1mHDk4NPUO7059rsouAS8yFHFUUd_VzTUz7MYzG0PRLYX3 JsQ85JOJZkJXvtiXWQ.f9LXH44rWE6nb9ycnghhCqpMdptwUR_sw8y0.3W9KrRlz8MYmxaPxEM_H qQxyHd9syQ.TnAst.GkrGRK2v5SagViSfCc9J2Mo.7GF9jxy1mnXcEDhtKYiMGo.4uDuBk7p0HeX OF_dwxjgCKzll29I57hpEYLrPi9SvsGZj67Ycxl6msUwgzG_A9vA8Jd1PNlR325bdFQmkdEKvRU0 1QzCDQQ4WV_40Y0GYnsDzpSei3W_bCFHQRCkArIHmAkusuaViL.ZuaQWefMELG74KF.RPeife3Cp YnV1ztcQuzkTJE2O7Q1F0aKe3UmkQ3OI1l1If1uMVb6QelJYqhMaRWnpfuXlhgZjbaPDO2fi.f1I ZNigImxq8h0ma5NnpQ8dzhIoQ.tX17l1e.uaOuXYk6SjzsqkpFJkhGYFp1uWyZecZc_DYpaA2XIb TS6pcBZtAh2d5SpaqFJzNcS0NcRq4.Rh2koAxq9h0NMImllsAJktbV_aOQqYFuonFVTIhcEtilR4 xlEiTtYtbglwRATSv7GQA6uOfFTjOqOu4hRxXx7d_8mcPCGterwU5ORA8a828zepBvosCZUSLoWZ pfFmaoDsYwHlwuUIr X-Sonic-MF: X-Sonic-ID: 53839d3e-b1b8-41eb-98d0-61b0a652b2ae Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Sun, 8 Sep 2024 02:38:58 +0000 Received: by hermes--production-gq1-5d95dc458-6q8w6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9472dcdaaabf373bd177d158a8aaca5b; Sun, 08 Sep 2024 02:38:58 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: Loader needs to be updated message Message-Id: <082B95C0-8D03-40E6-A5DD-EA8723FA9AF3@yahoo.com> Date: Sat, 7 Sep 2024 19:38:47 -0700 To: void , Current FreeBSD X-Mailer: Apple Mail (2.3776.700.51) References: <082B95C0-8D03-40E6-A5DD-EA8723FA9AF3.ref@yahoo.com> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.97 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.965]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; FREEMAIL_TO(0.00)[f-m.fm,freebsd.org]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.206:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.206:from] X-Rspamd-Queue-Id: 4X1Z0j1TmVz4jlZ void wrote on Date: Sat, 07 Sep 2024 17:27:00 UTC : > On Sat, Sep 07, 2024 at 08:20:07AM -0700, Mark Millard wrote: >=20 > >I'm more interested in what is there than just what is not > >there. May be show something analogous to: > > > ># gpart list | grep -E '(Name|type|efi|media)' > >1. Name: mmcsd1s1 > > efimedia: HD(1,MBR,00000000,0x8000,0x3b68000) > > rawtype: 12 > > type: fat32lba > >1. Name: mmcsd1 > >1. Name: da0p1 > > efimedia: = HD(1,GPT,81f199f2-5eb9-11ec-b507-a0cec8d68fdc,0x28,0x82000) > > rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b > > label: BPIM3efi > > type: efi > >2. Name: da0p2 > > efimedia: = HD(2,GPT,efa6f52d-c8ca-11ec-bb1e-03fc0558c84f,0x82800,0x366000) > > rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b > > type: freebsd-swap > >3. Name: da0p3 > > efimedia: = HD(3,GPT,71abc138-db5e-11ee-bfe1-e352d1095e3c,0x6861c800,0x732800) > > rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b > > type: freebsd-swap > >4. Name: da0p4 > > efimedia: = HD(4,GPT,b568945a-5eba-11ec-b507-a0cec8d68fdc,0xa1c800,0x67c00000) > > rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b > > type: freebsd-ufs > >1. Name: da0 > > > >I'll note that on various type of systems, the (effectively) > >ESP need not be specifically of "type: efi", possibly some > >fat variant instead also works. (Of course, EFI need not be > >the only alternative for various type of contexts.) > > > >I'll note the /boot/efi is normally just an empty directory > >that is possibly used as a mount point. > > > >In some (somewhat older) configurations /boot/msdos is > >similarly an empty directory and possibly used as the mount > >point instead. > > > >> After source building to latest stable in the usual way, same error = message 'loader needs updating'. >=20 > This is on the guest >=20 > # gpart list | grep -E '(Name|type|efi|media)' > 1. Name: vtbd0p1 > efimedia: HD(1,GPT,b7731537-61da-11ed-9652-00a0981073a7,0x28,0x400) > rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f > type: freebsd-boot As I understand it, that "type: freebsd-boot" means that one of the likes of: # ls -lodT /boot/gpt*boot* -r--r--r-- 1 root wheel uarch 62139 Apr 7 15:55:46 2024 /boot/gptboot -r-xr-xr-x 1 root wheel uarch 109568 Apr 7 15:55:46 2024 = /boot/gptboot.efi -r--r--r-- 1 root wheel uarch 176062 Apr 8 01:15:54 2024 = /boot/gptzfsboot is in use inside that freebsd-boot partition (vtbd0p1). But only one of those supports zfs. Fair warning that I never use any of those 3 --nor freebsd-boot partitions. Nor have I ever used Bhyve. Do not blindly believe what I report here. But hopefully it points in a useful direction to initially investigate. Looking at: "man 8 gptboot.efi" indicates that "gptboot.efi works only with UFS root file systems". "man 8 gptboot" indicates that "gptboot is used on BIOS-based computers to boot from a UFS partition on a GPT-partitioned disk". BUT "man 8 gptzfsboot" indicates "gptzfsboot is used on BIOS-based computers to boot from a filesystem in a ZFS pool". So the partitioning is not set up for supporting the combination of: EFI and ZFS-for-root-filesystem: if the gptzfsboot is used then it needs to be old style BIOS-and-ZFS for the context. So my expectation here is that the gptzfsboot content in use in vtbd0p1 (i.e. -i 1 vtbd0 in some commands) is out of date and needs to be updated. To my knowledge, there is no simple technique to look up the vintage present in -i 1 vtbd0 . I have no clue which of the following should be used for your context to be sure that the content ends up up to date: The Protective MBR variant: # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 vtbd0 The variant for without the Protective MBR: # gpart bootcode -p /boot/gptzfsboot -i 1 vtbd0 Those commands are adjusted variations of what the man page's EXAMPLES section shows, but not using the 2 example's ada0 notation. > 2. Name: vtbd0p2 > efimedia: = HD(2,GPT,b77a2687-61da-11ed-9652-00a0981073a7,0x800,0x2000000) > rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b > type: freebsd-swap > 3. Name: vtbd0p3 > efimedia: = HD(3,GPT,b7836ca4-61da-11ed-9652-00a0981073a7,0x2000800,0xdfff000) > rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b > type: freebsd-zfs > 1. Name: vtbd0 =3D=3D=3D Mark Millard marklmi at yahoo.com