2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-27 09:06:39 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
Vinícius Ferrão 5d3c40b5a2 test(enablekdump): pin options that merely end in root=
Add foo-root=bar and rd.foo.root=bar to the legacy migration fixture
and assert both survive intact. Against the word-boundary strip these
assertions fail with the tokens truncated to foo- and rd.foo.; the
existing second-run check keeps covering them through both executions.
2026-08-18 14:04:26 -03:00
Vinícius Ferrão def36c0444 test(enablekdump): cover migration from the legacy shared root=
Start the RHEL 7 run from a sysconfig carrying the shared-root value the
previous script wrote, as on an already-deployed node, plus options from
the stock RHEL 7 file. Assert that exactly one root= remains, that it
points at the node subdirectory, that rd.neednet=1 and rootflags=nofail
survive, and that a second run leaves KDUMP_COMMANDLINE_APPEND
unchanged.

Against the previous prepend-only sed the count and idempotency
assertions fail: the legacy root= survives as the last token, which is
the one dracut honors.
2026-08-18 13:37:13 -03:00
Vinícius Ferrão a2cf002959 test(enablekdump): cover the per-node NFS dump staging
Runs the RHEL NFS path of the postscript against a scratch tree that
stands in for the mounted dump export. Checks that kdump.conf points at
the node's own subdirectory, that only that subdirectory is created on
the target, and that nothing lands at the export root. RHEL 7 keeps the
dracut workaround but under the node subdirectory.

Five of the eight assertions fail against the previous behavior.
2026-08-17 14:34:37 -03:00