From nobody Mon Dec 18 18:12:38 2023 X-Original-To: freebsd-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 4Sv7GH53s2z54q7S for ; Mon, 18 Dec 2023 18:12:39 +0000 (UTC) (envelope-from kreuter@progn.net) Received: from vps3c.progn.net (vps3c.progn.net [45.77.108.154]) by mx1.freebsd.org (Postfix) with ESMTP id 4Sv7GG6t2xz3gpH for ; Mon, 18 Dec 2023 18:12:38 +0000 (UTC) (envelope-from kreuter@progn.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of kreuter@progn.net designates 45.77.108.154 as permitted sender) smtp.mailfrom=kreuter@progn.net; dmarc=pass (policy=quarantine) header.from=progn.net Received: from flint.progn.net (unknown [10.0.2.4]) by vps3c.progn.net (Postfix) with ESMTP id 5EB4A61D2E for ; Mon, 18 Dec 2023 18:12:38 +0000 (UTC) Received: from flint.local (localhost [127.0.0.1]) by flint.progn.net (Postfix) with ESMTP id 431C64144E97 for ; Mon, 18 Dec 2023 13:12:38 -0500 (EST) From: Richard M Kreuter To: freebsd-questions@freebsd.org Subject: Major version upgrades needing drivers in kmod packages? X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.1 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31636.1702923156.1@flint.local> Date: Mon, 18 Dec 2023 13:12:38 -0500 Message-ID: <31637.1702923158@flint.local> X-Spamd-Result: default: False [-0.91 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.79)[0.786]; DMARC_POLICY_ALLOW(-0.50)[progn.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; ASN(0.00)[asn:20473, ipnet:45.77.96.0/20, country:US]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Sv7GG6t2xz3gpH X-Spamd-Bar: / Hi all, Is there a recommended way to do a major version upgrade when a system needs some drivers from kmod packages in order to be able to finish the upgrade after booting into the new kernel? I use these steps from the Handbook for upgrading: # freebsd-update -r upgrade # freebsd-upgrade install # reboot # freebsd-update install # pkg-static upgrade -f # freebsd-update install # if necessary after the pkg upgrade During a major version upgrade, a driver supplied by a kmod package may (IME, will) go out of commission between the reboot and the end of the pkg upgrade. On some systems, the incapcacitated device doesn't impede the rest of the upgrade procedure. For example, my laptop loses graphics after the reboot, but I don't need graphics to do the rest of the steps. But two of my systems are headless boxes whose NIC driver comes from a kmod package. Because they're headless, I'll need networking in order to log in and do the steps after the reboot. (I can get physical access, could perhaps work around this with a USB NIC, but I'd hope there's a software-only approach.) I'm sure I can't be the first person to encounter this scenario, but I can't find a documented solution in the Handbook or on forums and lists. Thanks in advance, Richard