2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-21 16:39:30 +00:00
Files
xcat-core/xCAT-genesis-builder/dracut_105
Daniel Hilst 3e302e7f19 test(xcat-core): Introduce BATS & convert shell scripting tests to it
The go-xcat shell behavior tests were written as Perl harnesses, which made the shell assertions harder to read and kept shell-specific setup outside a native shell test framework.

Add BATS to the GitHub Actions dependency set, run BATS tests from the same preserved source tree as the Perl unit suite, and move the go-xcat repository checks into xCAT-test/autotest/bats.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-08 12:57:16 -03:00
..

Dracut modules for xCAT Genesis

Subdirectories:

* `el/`     — EL (RHEL/Rocky/Alma) dracut module
* `ubuntu/` — Ubuntu dracut module (adapted library paths, dpkg instead of rpm)

Both modules share the same xcat-cmdline.sh, dhclient.conf, dhclient-script,
rsyslog.conf, and xcatroot files (copied, not symlinked, to avoid issues
when cp -a copies the module into the dracut modules directory).

Key differences in ubuntu/module-setup.sh vs el/module-setup.sh:
* Uses dpkg instead of rpm
* Uses /etc/os-release instead of /etc/redhat-release
* rsyslog modules from /usr/lib/<triplet>/rsyslog/ instead of /lib64/rsyslog/
* libnss_dns from /lib/<triplet>/ instead of /lib64/
* udev rules from /usr/lib/udev/rules.d/ instead of /lib/udev/rules.d/
* mkfs.btrfs instead of mkfs.xfs
* chrony config checked at both /etc/chrony.conf and /etc/chrony/chrony.conf