NetBSD Problem Report #58923
From www@netbsd.org Fri Dec 20 21:29:21 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 00F2F1A9238
for <gnats-bugs@gnats.NetBSD.org>; Fri, 20 Dec 2024 21:29:21 +0000 (UTC)
Message-Id: <20241220212919.822FD1A923A@mollari.NetBSD.org>
Date: Fri, 20 Dec 2024 21:29:19 +0000 (UTC)
From: als@thangorodrim.ch
Reply-To: als@thangorodrim.ch
To: gnats-bugs@NetBSD.org
Subject: Official "update NetBSD from source" instructions disrupt service depending on kernel modules
X-Send-Pr-Version: www-1.0
>Number: 58923
>Notify-List: riastradh@NetBSD.org
>Category: kern
>Synopsis: Official "update NetBSD from source" instructions disrupt service depending on kernel modules
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 20 21:30:00 +0000 2024
>Closed-Date: Wed Oct 29 10:33:38 +0000 2025
>Last-Modified: Wed Oct 29 10:33:38 +0000 2025
>Originator: Alexander Schreiber
>Release: NetBSD 10.1
>Organization:
not much
>Environment:
NetBSD [hostname censored] 10.1 NetBSD 10.1 (GENERIC) #0: Thu Dec 19 22:08:33 CET 2024 root@[hostname censored]:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
If one follows the official instructions for "Updating an existing system from
sources" at https://www.netbsd.org/docs/guide/en/chap-updating.html then this
will result in a service interruption for any services depending on loading
specific kernel modules. This was discovered by (temporarily) losing ZFS
support during a 10.0 -> 10.1 upgrade.
This happens because first the kernel and distribution targets are built,
then the new kernel is placed at /netbsd and the machine rebooted. At this
point, the new kernel modules under /stand have not yet been installed and
thus the freshly booted kernel can't load them. In my case, I noticed that
ZFS had "disappeared" and saw the "can't start ZFS" complaint on the console.
The the distribution is installed and the post-install steps completed,
followed by another reboot. Now the new kernel modules are installed, the
kernel can load them and service (e.g. ZFS) is restored.
>How-To-Repeat:
- set up a system with a service that requires loading of (a) kernel
module(s), e.g. ZFS
- follow https://www.netbsd.org/docs/guide/en/chap-updating.html
- specifically
- build kernel & distribution
- "35.1.3. Installing the kernel and userland"
- copy the kernel image into place as /netbsd
- reboot as instructed
- observe ZFS not being available
- install distribution and follow cleanup instructions
- reboot as instructed
- observe ZFS being available again
>Fix:
>Release-Note:
>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/58923 CVS commit: htdocs/docs/guide/en
Date: Fri, 20 Dec 2024 22:32:34 +0000
Module Name: htdocs
Committed By: riastradh
Date: Fri Dec 20 22:32:34 UTC 2024
Modified Files:
htdocs/docs/guide/en: chap-updating.xml
Log Message:
docs/guide/en/chap-updating: Note building and installing modules.
XXX This is also missing dtb on fdt-based ports.
PR kern/58923: Official "update NetBSD from source" instructions
disrupt service depending on kernel modules
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 htdocs/docs/guide/en/chap-updating.xml
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: nia@NetBSD.org
State-Changed-When: Wed, 29 Oct 2025 10:33:38 +0000
State-Changed-Why:
fixed by riastradh.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.