From nobody Wed Nov 2 23:37:51 2022 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 4N2jxC4z9Qz4hDZr for ; Wed, 2 Nov 2022 23:37:51 +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 4N2jxC1R57z3RXQ for ; Wed, 2 Nov 2022 23:37:51 +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 4N2jxC0WNXzFNr for ; Wed, 2 Nov 2022 23:37:51 +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 2A2NbpjF015716 for ; Wed, 2 Nov 2022 23:37:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2A2Nbp6Q015715 for bugs@FreeBSD.org; Wed, 2 Nov 2022 23:37:51 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 267535] freebsd-update does not create proper deep boot environment backups Date: Wed, 02 Nov 2022 23:37:51 +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.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd@juicer.orange-carb.org 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667432271; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+hrmHqsVwZ7AXPsbj6OtWPLd1Y8EWR3oorcgrz+FCnY=; b=LAiUvhLtru7o5rdA1oxeayagCThoHkfwH5nc8wWRgekyQWUiJO95zKxyfznBg6osfP7BxM eKUeSGq3sDR/fafcyLhL3lapdZi70rbQqu02ovwJIxiUIVAYVZ+4J1OVGNg4tRXEEL68c/ PJGRi7+1OVFpYi9CEpyhL4g5E7l85VNC88tidSCye0GpV+S8fUYX7FmKeSsL6JDV5t42C1 IWUWcgyGeeYunnmq+DeeiAaJ7Iu4479RZtcwhX/8HOPQAnzVCQLn9x9QorIZmxyLydXPDL QVIqAQ/GMCQ1Bz2ljSHRJ74aubiMMrUfAUMC8Y+0ikArnhJ21SRGR1CVBdO+Mw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667432271; a=rsa-sha256; cv=none; b=U3LDyRvUpuSU5SLyArC9nf/6XCVApuSVhE8wst5jgRF/PkChwlU/alYfAuwQ/qOx/ucbMr JAEM2qy0drALe9t0vYHOeZWOHGfYwykbXXnJmReggDnIsn/pssEZlGWuc31//52ryvrjoL RXM6aBiTRmzBRHsDhngd4aYh7noTDBJ8VOGYfJmxwOzdj9vVuAT9SpVgbAtERBWrSnoK9O S07cCb1CA1ScqP1ME7a5Hc/C0uhXPhrGbPOrKX4Ycv8z/hGlgaBjPORbifE+r2/Ak0Fg6y xOgIwAsimK2CeDQDKSoF308Pm2RaHEjHo0SdGC0FzglPJuF2YLxpEGSKTnGWig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267535 Bug ID: 267535 Summary: freebsd-update does not create proper deep boot environment backups Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd@juicer.orange-carb.org freebsd-update assumes that the system is using a "shallow" boot environmen= t as created by the Auto ZFS option to bsdinstall(8). However, the zfsbe rc(8) script also supports a "deep" boot environment in which the boot environmen= t is divided into subordinate datasets. (I am using the terms defined in bectl(8= ) at "Boot Environment Structures.") In deep boot environments, The action taken by freebsd-update (bectl create) results in an empty copy of the ROOT dataset that holds the subordinate datasets. In other words, freebsd-update is backing up the wrong thing, and therefore there is no backup of the real boot environment, contrary to expectations. This is unhelpful at best, and at worst provides a false sens= e of security should a restore be necessary. What should happen is that freebsd-update should determine if this is a sha= llow or deep boot environment. In the latter case, it should instead run "bectl create -r" to correctly back up the deep boot environment. Thank you for a useful utility. --=20 You are receiving this mail because: You are the assignee for the bug.=