2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-24 11:22:18 +00:00
Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Hilst c3c253ba00 fix(xcat-core): the Ubuntu Genesis image is built from the build host kernel
dracut copies the kernel, the modules and every command out of the root it runs in. The Ubuntu
Genesis deb was built once on the build host, so every Ubuntu release received the build host
kernel, and the pipelines converted the EL rpm with alien instead.

builddebs.pl gains --genesis, --genesis-only and --genesis-dist, and builds the deb once per
codename inside that codename's sbuild chroot. builddeb-genesis-base takes --expect-codename and
stops in the wrong root. genesis_log_errors fails the build on an error line that a zero exit
status hides.

Without --genesis-only the dep pipeline cannot build the Ubuntu Genesis payload, so the apt dep
tree stays empty and the release candidate carries no Ubuntu dep repository.

xCAT-test/unit/genesis_deb_per_codename.t covers the per-codename build.

Backport of #7835 to 2.19.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-24 21:16:52 -03:00
Daniel Hilst b62585475a fix(xcat-core): build locks the shared tree refuses to grant
A cancelled build left its lock directory behind on the shared tree, so
every later build of the same checkout waited for a lock whose owner was
gone. The build helper ran each command with a plain fork and killed only
the immediate child, so the shell's own workers survived the cancellation
and kept the tree in use.

XCAT::BuildUtils now runs each command in its own process group, blocks
the cancellation signals across the fork so neither side can miss the
group, and signals the group rather than the pid. It escalates to KILL,
confirms the group is gone, and retains the locks when it is not, so a
lock is never released while a worker can still write.

xCAT-test/unit/builddebs_lock_cancellation.t captures the defect. It
fails without the change.

Backport of #7867 to 2.19.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-24 11:58:27 -03:00
Vinícius Ferrão 4766f4441f feat(build): build and publish the Ubuntu management node for riscv64
The xcat and xcatsn packages declared only amd64 and ppc64el, and the
builder built and indexed only those two architectures, so a riscv64
management node had no package to install. Both packages are now built for
riscv64, every release the repository serves declares the architecture,
and the generated mklocalrepo.sh maps a riscv64 host to its own repository
instead of amd64. Each package now carries its own architecture list:
xCAT-genesis-scripts keeps the two it has control files for, because
riscv64 Genesis ships as an OpenEmbedded package instead.

Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-08 17:02:03 -03:00
Vinícius Ferrão 77c1694b03 refactor(utils): centralize executable lookup 2026-09-02 22:57:05 -03:00
Daniel Hilst 1160214ce3 refactor(build): merge the two BuildUtils modules into one
The rebase onto master left the repository with two modules named
BuildUtils.pm: the shared build helpers at the root, package BuildUtils, and
the target architecture parser at build-utils/lib/XCAT/BuildUtils.pm, package
XCAT::BuildUtils. buildrpms.pl loaded both, one through `@INC` and one through a
path require. A reader cannot tell which module a BuildUtils reference names,
and the test sandbox staged the wrong one.

Move the shared helpers into build-utils/lib/XCAT/BuildUtils.pm as
XCAT::BuildUtils, and export targetarch_from_target beside them. Both builders
and the four tests now put build-utils/lib on `@INC` and import from the one
module. targetarch_from_target keeps its behaviour: it returns the same
architecture as before for suffixed targets, empty and undefined input, mixed
case and every architecture token.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-02 13:51:41 -03:00
Vinícius Ferrão ef6897ec87 refactor(build): make target architecture parser reusable
Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-01 10:50:23 -03:00