fix(validate): assert the ZFS image has no UFS root row (Sam & Pi) #74
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/validate-live-image-zfs-fstab-row"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
validate-live-image.sh still asserted
grep_in '/dev/ufs/FreeBSD_Install.* rw' etc/fstablabelled "fstab root rw". build.sh does the opposite on purpose: line2954-2958 strips the base memstick's
/dev/ufs/FreeBSD_Install / ufsrow, andthe image boots the ZFS BE named by loader.conf
vfs.root.mountfrom, so there isno 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.