From nobody Sun May 30 03:10:00 2021 X-Original-To: bugs@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 1266EC7FB72 for ; Sun, 30 May 2021 03:10:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ft3Lv6SQGz3JD3 for ; Sun, 30 May 2021 03:09:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C763B15B5A for ; Sun, 30 May 2021 03:09:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 14U39xKH076725 for ; Sun, 30 May 2021 03:09:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 14U39xme076724 for bugs@FreeBSD.org; Sun, 30 May 2021 03:09:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 256252] freebsd-update rollback made system unbootable Date: Sun, 30 May 2021 03:10:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: xistence@0x58.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256252 Bug ID: 256252 Summary: freebsd-update rollback made system unbootable Product: Base System Version: 13.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: xistence@0x58.com I am running with ZFS on root using a default install that was made using FreeBSD 12.0-RELEASE a year or two ago. Today I attempted to upgrade to FreeBSD 13.0-RELEASE, after rebooting into = the new kernel network traffic stopped working, so I wanted to roll back the changes FreeBSD update had made: freebsd-update rollback shutdown -r now However after that I got back a mountroot> After some fiddling, I used the following to get back into a bootable state: set currdev=3D"zfs:zroot/ROOT/default:" unload load /boot/kernel.old/kernel load /boot/kernel.old/opensolaris.ko load /boot/kernel.old/zfs.ko boot -s Once in single user mode: zfs set readonly=3Doff zroot zfs mount -a cd /boot cp -pr kernel kernel.13 cp -pr kernel.old kernel.12 rm -rf kernel cp -pr kernel.old kernel shutdown -r now After that my system came back online. When I attempted to load: /boot/kernel/kernel at the loader it would succeed, but would fail when I attempted to load /boot/kernel/opensolaris.ko. Somehow a freebsd-update rollback left me with a broken /boot/kernel. The upgrade was from FreeBSD 12.2-RELEASE-p5 to FreeBSD 13.0-RELEASE-p1. root@Breached:/usr/home/xistence # zpool status pool: zroot state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not supp= ort the features. See zpool-features(7) for details. scan: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 ada0p3 ONLINE 0 0 0 errors: No known data errors root@Breached:/usr/home/xistence # zfs list -t all NAME USED AVAIL REFER MOUNTPOINT zroot 7.66G 202G 88K /zroot zroot/ROOT 6.10G 202G 88K none zroot/ROOT/default 6.10G 202G 6.10G / zroot/tmp 112K 202G 112K /tmp zroot/usr 1.44G 202G 88K /usr zroot/usr/home 28.8M 202G 28.8M /usr/home zroot/usr/ports 713M 202G 713M /usr/ports zroot/usr/src 733M 202G 733M /usr/src zroot/var 123M 202G 88K /var zroot/var/audit 88K 202G 88K /var/audit zroot/var/crash 88K 202G 88K /var/crash zroot/var/log 123M 202G 123M /var/log zroot/var/mail 104K 202G 104K /var/mail zroot/var/tmp 124K 202G 124K /var/tmp Nothing special here. Let me know if there is anything else I can help with. --=20 You are receiving this mail because: You are the assignee for the bug.=