fix(validate): assert the ZFS image has no UFS root row (Sam & Pi) #74

Merged
clawdie merged 1 commit from fix/validate-live-image-zfs-fstab-row into main 2026-11-15 20:08:08 +01:00
Owner

validate-live-image.sh still asserted grep_in '/dev/ufs/FreeBSD_Install.* rw' etc/fstab labelled "fstab root rw". build.sh does the opposite on purpose: line
2954-2958 strips the base memstick's /dev/ufs/FreeBSD_Install / ufs row, and
the image boots the ZFS BE named by loader.conf vfs.root.mountfrom, so there is
no fstab root row at all. The check therefore failed a correct image and would
have passed one where the strip had regressed — a validator that inverts the
build's intent is worse than no validator.

The check now asserts the row's absence with the same pattern build.sh deletes,
and the swap check is unchanged.

scripts/tests/validate-live-image-fstab-test.sh drives the validator against
synthetic roots: ZFS-root fstab passes, a leftover UFS row fails, a swap entry
still fails. Against the previous validator the first case fails with
"expected output containing 'PASS: no UFS root row'". Wired into ci-checks.sh
next to the version gate.

Provenance: the same one-line change was sitting unmerged in
docs/sync-0.15.1-gates (18174ab), whose test half is already on main; that
branch is 86 commits behind and is not being merged.

Gates: ci-checks.sh rc 0, freebsd-portability 7/7, markdown/date/okf/wiki-lint
clean.

validate-live-image.sh still asserted `grep_in '/dev/ufs/FreeBSD_Install.* rw' etc/fstab` labelled "fstab root rw". build.sh does the opposite on purpose: line 2954-2958 strips the base memstick's `/dev/ufs/FreeBSD_Install / ufs` row, and the image boots the ZFS BE named by loader.conf `vfs.root.mountfrom`, so there is no fstab root row at all. The check therefore failed a correct image and would have passed one where the strip had regressed — a validator that inverts the build's intent is worse than no validator. The check now asserts the row's absence with the same pattern build.sh deletes, and the swap check is unchanged. scripts/tests/validate-live-image-fstab-test.sh drives the validator against synthetic roots: ZFS-root fstab passes, a leftover UFS row fails, a swap entry still fails. Against the previous validator the first case fails with "expected output containing 'PASS: no UFS root row'". Wired into ci-checks.sh next to the version gate. Provenance: the same one-line change was sitting unmerged in docs/sync-0.15.1-gates (18174ab), whose test half is already on main; that branch is 86 commits behind and is not being merged. Gates: ci-checks.sh rc 0, freebsd-portability 7/7, markdown/date/okf/wiki-lint clean.
fix(validate): assert the ZFS image has no UFS root row (Sam & Pi)
Some checks failed
format-check / gates (pull_request) Failing after 24s
b7c22573ce
validate-live-image.sh still asserted `grep_in '/dev/ufs/FreeBSD_Install.* rw'
etc/fstab` labelled "fstab root rw". build.sh does the opposite on purpose: line
2954-2958 strips the base memstick's `/dev/ufs/FreeBSD_Install / ufs` row, and
the image boots the ZFS BE named by loader.conf `vfs.root.mountfrom`, so there is
no fstab root row at all. The check therefore failed a correct image and would
have passed one where the strip had regressed — a validator that inverts the
build's intent is worse than no validator.

The check now asserts the row's absence with the same pattern build.sh deletes,
and the swap check is unchanged.

scripts/tests/validate-live-image-fstab-test.sh drives the validator against
synthetic roots: ZFS-root fstab passes, a leftover UFS row fails, a swap entry
still fails. Against the previous validator the first case fails with
"expected output containing 'PASS: no UFS root row'". Wired into ci-checks.sh
next to the version gate.

Provenance: the same one-line change was sitting unmerged in
docs/sync-0.15.1-gates (18174ab), whose test half is already on main; that
branch is 86 commits behind and is not being merged.

Gates: ci-checks.sh rc 0, freebsd-portability 7/7, markdown/date/okf/wiki-lint
clean.
clawdie deleted branch fix/validate-live-image-zfs-fstab-row 2026-11-15 20:08:08 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
clawdie/clawdie-iso!74
No description provided.