From nobody Wed Dec 8 21:50:50 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 78B4F18C1475 for ; Wed, 8 Dec 2021 21:50:50 +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 4J8W7Z1bFxz3v1j for ; Wed, 8 Dec 2021 21:50:50 +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 16E231AC5B for ; Wed, 8 Dec 2021 21:50:50 +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 1B8Loori074905 for ; Wed, 8 Dec 2021 21:50:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B8LooJC074904 for bugs@FreeBSD.org; Wed, 8 Dec 2021 21:50:50 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 260281] etcupdate: dry-run (-n) causes following actual run to skip changes Date: Wed, 08 Dec 2021 21:50:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp 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=1639000250; 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=bAHSy+FwDcIWztw+ND+xSHnztmNTzX10j9sCOp6ZwmQ=; b=rLcuCm2TMRkHOuQOz71v2uBxFfUGMCiJ0dcJE1s3b54LcppUsQ7hG1lSIveQtoMYBuRAGz mvOH3+82L3wfW1lPBHL9MifkiWswK6SKEFIvipFq+xbgstzRBPW9nOgIYe0CsqyJp5Gbdp e90kq/bDb2cK6dgKc4v9qLDCyZRQfbEwD8AhrYq5/4rH6x51DeRTv2mKxcsknAEy6PQkWX u/0g906tfGyMoClLh37sfkm0myEYu7l2zhtGFDk2e+IPLNPjI3QUxeG/a6/B/PnacT3kia M33KlIiPfVJTZOwVyZDywPjSvWD25DXVT8tDwjPCyYcQ0v5CzMIKvPShLalb0A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639000250; a=rsa-sha256; cv=none; b=GAw+amo/O6VjlBFGJDETDPoogs6oQEy28H1UFrKzchWZRdFcCEGORi0GJS1rmHg2GXy5fG nf7qcFYTgpY+hOR012iZJwabGruJBMp9UI/2E5Ax9SxdVoBNJRyB7ojLRF7rvMlgXg26Mc qfd2rRoPFp3YF1JMlI67RNE/j95zvDCGeFlR+h4S2uYnBuR1izANWoLqZ/UTMgJGbay5oq 2VuEY35Zjh9Z2VP1DqHCTIS9QmpIiBCqx+LvZvjTC8O0cEZntaW+fSc7ohzPq3mLb3b+Bb kJN7Y2Mu6i89ZqkexGj/FPBY8CCc445pLhZgk7GhqyNhm7r4nXJz4VSq4qXeRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260281 Bug ID: 260281 Summary: etcupdate: dry-run (-n) causes following actual run to skip changes Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: junchoon@dec.sakura.ne.jp Doing `etcupdate -n` itself runs OK, but following `etcupdate -B` does NOT do anything, hence nothing is actually updated. The only workaround I have is NOT to try dry-run. This would be caused by any commit done in april 2021 on main (MFC'ed to stable/13 in june 2021). It would be because the same trees are used for dry-run and actual run. (Not looked into the code. Just a thought.) Maybe using dedicated trees (older one is copied from actual current one, building current tree on dedicated place and delete them every time the dry-run finishes) for dry-run would fix. And copying /etc to some temporary place and applying changes to it, copy back to /etc may be help for your issue, I think. --=20 You are receiving this mail because: You are the assignee for the bug.=