From nobody Tue Dec 24 17:24:45 2024 X-Original-To: questions@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 4YHhbS3pN4z5hXS5 for ; Tue, 24 Dec 2024 17:24:52 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11olkn2038.outbound.protection.outlook.com [40.92.18.38]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YHhbR2pB8z4fVh for ; Tue, 24 Dec 2024 17:24:51 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=UtQZv3YX; spf=pass (mx1.freebsd.org: domain of mirror176@hotmail.com designates 40.92.18.38 as permitted sender) smtp.mailfrom=mirror176@hotmail.com; dmarc=pass (policy=none) header.from=hotmail.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=L6Li1abcfgcoaHp5d2q6tes+MtdxewH6icTs5b1LtdafOy7tt1JfAWym128b/SHueNE/ApGIwkm7Lc2ClqE26tiz889VEMsLdR4nYICY2I8Tz2rRtT3UQLWJBmg4qMrncf/LdqABLrQdC7ivcQTh5eQBhGrVqfiLeCByCaIshTM6rE7wDlfMtq4xKl5EFrZFlugaXUCNcF0VA4YqDrXh05nKuEsD5xavvbqdYwmSN7k8MzIYXrshF33qqrsjmvHyXtNyq3mMFCEn383HCqsdmcZzTH1uG13fAS2t3JZRbXb8Zw8tZxeaYl3RYUaRkllOdrE3gXzuN43UKBEhutVgnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sfkzCbF7iFSDQvKz9hGP1DkJnjdNP+V2MxUZrcp4lEU=; b=ViqvmENId1bcx8NeofAzS4xsshGBm4S25xDSHfyfts7KTRHC5nI6hTzqt6Q3MQZdKpqHgYzeTsWBrGye7+WpsotXWCVCzMHSzejfm+QRJRgL3/mbpoBSkCGRM4c58RFjC/RHlfTlcGlIYOXK2bwVhDSQ6xcdHzBIb5qU4ZoKjQMaVgRAh0dBX1/r5AL3r2Oylh8TGh/f3FymW/UDjmgZfI34xbo2FbLBCRvC3CdW3lC3S71o1MQCqxBWnE44YzW5xIAmvV0MdNOIyOukn9GUAkZFU709hbn/qi6cxM7k8kxvGHva9fiJCsgX85/Ky112eBTruRVzzzMw7qHwdl+h+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sfkzCbF7iFSDQvKz9hGP1DkJnjdNP+V2MxUZrcp4lEU=; b=UtQZv3YX3lN1rqG5QVRhXY7i5kQVZYxyVqUMOxF/ZnML/MCsEin5IopQSQxMKMlt6lOl0R4Ei3mtUhRgUAsQ7Yy2VKQB6d2mQ7ZbbuATChiqG59FBV0QoV2Ywh9hw2TFubllWP7q0cyVT0fS7B5kFlolnLRG7Rg4/F7Xhi+cg8Df6tH2hifjSbDKaEuOwsCvTANfXJsRblKX0dYTxAXKLsAwb706jufprywmeDp+qWBX/8ldjrSwoSO1KrTBBcZN6pXajiTWsRcOCeuWNrqlIJouMXSPXF2auijABpIQ8MwswiaoB85yJ6w+KJMmtJLA0frQvKXJbHai1CRT3OHt+g== Received: from PH0PR11MB4776.namprd11.prod.outlook.com (2603:10b6:510:30::14) by BL3PR11MB6388.namprd11.prod.outlook.com (2603:10b6:208:3b8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.21; Tue, 24 Dec 2024 17:24:47 +0000 Received: from PH0PR11MB4776.namprd11.prod.outlook.com ([fe80::caa:f536:1b7:c4e0]) by PH0PR11MB4776.namprd11.prod.outlook.com ([fe80::caa:f536:1b7:c4e0%7]) with mapi id 15.20.8272.013; Tue, 24 Dec 2024 17:24:47 +0000 Message-ID: Date: Tue, 24 Dec 2024 10:24:45 -0700 User-Agent: Mozilla Thunderbird Subject: Re: Error: "Loader need to be updated" on boot in various combinations To: questions@freebsd.org References: Content-Language: en-US From: "Edward Sanford Sutton, III" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR05CA0138.namprd05.prod.outlook.com (2603:10b6:a03:33d::23) To PH0PR11MB4776.namprd11.prod.outlook.com (2603:10b6:510:30::14) X-Microsoft-Original-Message-ID: <22636e09-ab3d-4600-ba88-a2e7acab9b4d@hotmail.com> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR11MB4776:EE_|BL3PR11MB6388:EE_ X-MS-Office365-Filtering-Correlation-Id: fa7a3931-574a-4278-2f68-08dd243fdd3a X-Microsoft-Antispam: BCL:0;ARA:14566002|5072599009|8060799006|19110799003|461199028|15080799006|7092599003|6090799003|10035399004|440099028|3412199025; X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3ROQWJ0ekZ2WDJ2Rzk3d1pLL1cwelNu?= =?utf-8?B?S1hsNnZPd3VScXh6TDlkbmR5dWdOMzBmZ2x0RHBHQ09LdzBUQVZJbGlqdWxm?= =?utf-8?B?WkpuRXZrT00zZTBreEx1RmxFeTZ1S3NYc1hnUjB4aHF0bVZ2Mmlmd1I4cHNO?= =?utf-8?B?bDZxN0VqTFBFdnc1aEF5c015MkFORlhIQzcrcUN0VmxtTTlaZkNrWnJvYWpm?= =?utf-8?B?L2lJTDVLQjBTc1ltcnJEK3o5TC82Y2lFc3FkdUtpL3p1SEoyNmJtL2duOGh5?= =?utf-8?B?QU5nVnVTemlRNElwUDVNK3VUYjVTaTMyWFNjQ0M5YWVMZUNBcWlTNzc5REFj?= =?utf-8?B?RXBIV0gweG5KdUl4TlgvMUZ5R05OTVAwVVUwSk94VlBKcUFhR2x0OUR0amNN?= =?utf-8?B?RFBBcDl2Q3NaWkYyUmh4SURmQ1g2VTd0TVVEUDA5eWg0ZHZJa1V1Z0kwVjZF?= =?utf-8?B?cXp3ZXROZFpydjVBQStlbytvRmxNY1ZZTnlXSURyRkxnYVQ0UTVEbEZoSTJ2?= =?utf-8?B?Z3lxNEZac3h5TXVRU2QwMEc4djd4dndHMy94Nnp4YkpkWVlmUVNVZTJJYmF1?= =?utf-8?B?K1FLcUxZMm1CQUJpME5wbGlPQXlac1NDRkRxQktwY1E2aDV3WTZpTlNjTXdw?= =?utf-8?B?Yld6aFpYQk5IdHFXZjUyMy84STBEYW10RElCSlkyeXBVOWZSN0xQaDQ1cVVq?= =?utf-8?Q?DKSNsLA6+Tk1OAfBiEyweOY3GqtCuDQfo87yd4EGAOy0=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: fa7a3931-574a-4278-2f68-08dd243fdd3a X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB4776.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2024 17:24:47.3343 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR11MB6388 X-Spamd-Result: default: False [-2.46 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector10001:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.973]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/16]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[hotmail.com]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; TO_DN_NONE(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.18.38:from]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_IN_DNSWL_NONE(0.00)[40.92.18.38:from] X-Rspamd-Queue-Id: 4YHhbR2pB8z4fVh X-Spamd-Bar: -- On 12/24/24 09:09, Christopher Sean Hilton wrote: > I'm in the process of updating a set of machines from FreeBSD 13.2 and FreeBSD 13.3 to > 13.4. If the machine starts on 13.2, then my process is: > > ``` > # freebsd-update upgrade -r 13.3-RELEASE > ... > # freebsd-update install; reboot > ... > # freebsd-update install > > ... > # freebsd-update upgrade -r 13.4-RELEASE > ... > ``` > > I haven specifically watched, but I will next time, but when I do this I end up with a > machine that boots fine but sends the message: > > - "Loader needs to be updated" The 'tldr' is likely answered by the second paragraph below as 'seeing that after updating the code is a bug; it will go away after a future update'. Not sure why at least an errata wasn't created. This is a newer prompt. freebsd-udpate (among other upgrade steps) does not update the boot loader code. Usually boot loader changes are slow enough that its nice to have when things change but not a requirement; some changes are bugfixes instead of new features or minor adjustments that may be beneficial. As the prompt itself is newer, it hasn't been a bug free experience. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282001 covered receiving the prompt on 13.4 when it wasn't valid. The false-prompting bug will disappear with updates past 13.4. If booting a root on ZFS, the bootloader needs to be updated to understand newer ZFS features. If the feature requires full support+understanding and your boot loader doesn't support that feature then a pool upgrade becomes unbootable until updating the boot loader. If you update a root-on-zfs pool, you want to make sure you have updated the loader accordingly. Otherwise the last thing coming to mind was I think ARM related for bootcode changes that seemed of importance. > All of the machines are VMs running of VMware Fusion or ESXi so I can Snapshot the machines > leaving me free to do some experimentation in my search for a solution. However, searching > around the internet hasn't produced a solution to this problem. I'll give two examples: At a glance your steps below sound like you were on track for how to handle those two types. > One of the machines is an aarch64 VM with ZFS root filesystem. > > ``` > $ gpart show > => 40 83886000 nda0 GPT (40G) > 40 532480 1 efi (260M) > 532520 2008 - free - (1.0M) > 534528 33554432 2 freebsd-swap (16G) > 34088960 49795072 3 freebsd-zfs (24G) > 83884032 2008 - free - (1.0M) > > => 40 268435376 nda1 GPT (128G) > 40 33554432 1 freebsd-swap (16G) > 33554472 234880944 2 freebsd-zfs (112G) > > $ mount | egrep efi > /dev/gpt/efiboot0 on /boot/efi (msdosfs, local) > $ > ``` > > I've copied `/boot/loader.efi` to both `/boot/efi/efi/freebsd/loader.efi` and > `/boot/efi/efi/boot/bootaa64.efi`. The `efibootmgr -v` command reports that the > `.../freebsd/loader.efi` file is the one in use. Unfortunately, this didn't fix the problem. > > ---------------------------------------- > > My second machine is an amd64 VM with a UFS root filesystem: > > ``` > $ gpart show > => 40 33554352 da0 GPT (16G) > 40 1024 1 freebsd-boot (512K) > 1064 2096128 2 freebsd-ufs (1.0G) > 2097192 8388608 3 freebsd-swap (4.0G) > 10485800 12582912 4 freebsd-ufs (6.0G) > 23068712 2097152 5 freebsd-ufs (1.0G) > 25165864 8388528 6 freebsd-ufs (4.0G) > > $ > ``` > > I found a [post on the FreeBSD > forums](https://forums.freebsd.org/threads/update-of-the-bootcodes-for-a-gpt-scheme-x64-architecture.80163/) > that suggested using gpart as follows: > > `gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0` > > Again, since this is a virtual machine, and honestly not a hard one to rebuild, I took a > snapshot, fired off the gpart command, and again found the "Loader needs to be updated" > error message. > > ---------------------------------------- > > I understand that there are lots of different situations here. I'm willing to fork my > question into two questions to keep things easy to follow. > > > **Q:** _What's the root cause here?_ It seems like I'm not addressing the root cause. > >