From nobody Tue Aug 23 14:02:48 2022 X-Original-To: freebsd-stable@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 4MBrXW0dB0z4ZkW4 for ; Tue, 23 Aug 2022 14:02:51 +0000 (UTC) (envelope-from SRS0=3JBn=Y3=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4MBrXV1y63z4DP9 for ; Tue, 23 Aug 2022 14:02:50 +0000 (UTC) (envelope-from SRS0=3JBn=Y3=klop.ws=ronald-lists@realworks.nl) Date: Tue, 23 Aug 2022 16:02:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1661263368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=tGnpVLMQrgjIhnz5QqAw2rGUSG7jTm7fLQSNX4h3Yjw=; b=JseX2dqQzlsDSm1P5woPrghJumyvITB69n2nvMwEpuUythg1lTKQfUjy9ZIO0sBbsRv6p7 uJkBov+fq11ePmmxaovLGS69CDR6RK8SYWtouhwX2v+iSGUezzd3sir48JWIecMRkO1+Ol GyLzc1sZwQMu++t9qiZp446uJNfGHwAXckretW9ty6L1TrqBK15WsGxzuE05pY/AfvbDjP V9XeH2cT3FjdboqtJkPz6aN+2SHcYWTXl/G+C7clirYlM6+BvoWuRnmeUQuVbf7/wrzHLZ rdmeaJOCMwUdiH/i/Bus/Fru6NJixxn/LmspTjXXSKvrS2qwYz63GzxrKGNAjw== From: Ronald Klop To: FreeBSD-STABLE Mailing List Message-ID: <389080342.286.1661263368708@localhost> Subject: boot environment and /var/db/etcupdate ? List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_285_54489529.1661263368683" X-Mailer: Realworks (620.114) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4MBrXV1y63z4DP9 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=JseX2dqQ; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=3JBn=Y3=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=3JBn=Y3=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [-2.16 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-0.96)[-0.957]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=3JBn=Y3=klop.ws=ronald-lists@realworks.nl]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_COUNT_ZERO(0.00)[0]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; HAS_X_PRIO_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=3JBn=Y3=klop.ws=ronald-lists@realworks.nl] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_285_54489529.1661263368683 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, I'm running the super duper boot environment using ZFS. [1] I have /var and /usr/local as separate datasets. These do not change when I upgrade the OS and that keeps the backups a lot smaller as the backup sees a new BE as a new dataset and fully zfs sends all the data again. But when I rollback /var/db/etcupdate is not in sync with / anymore. And /var/db/ports and /var/db/pkg should be kept in sync with /usr/local. But I do not need to rollback these if I need to go back to the previous BE. Do people have a nice solution for this? Should I mv and symlink /var/db/etcupdate to somewhere in the BE? Regards, Ronald. [1] https://wiki.freebsd.org/BootEnvironments ------=_Part_285_54489529.1661263368683 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,

I'm running the super duper boot environment using ZFS. [1]

I have /var and /usr/local as separate datasets. These do not change when I upgrade the OS and that keeps the backups a lot smaller as the backup sees a new BE as a new dataset and fully zfs sends all the data again.

But when I rollback /var/db/etcupdate is not in sync with / anymore.
And /var/db/ports and /var/db/pkg should be kept in sync with /usr/local. But I do not need to rollback these if I need to go back to the previous BE.

Do people have a nice solution for this?

Should I mv and symlink /var/db/etcupdate to somewhere in the BE?

Regards,
Ronald.

[1] https://wiki.freebsd.org/BootEnvironments
  ------=_Part_285_54489529.1661263368683--