2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-05 12:37:54 +00:00
Files
xcat-core/xCAT-genesis-builder/dracut_105
Vinícius Ferrão 32149f10f4 fix(genesis): only wait 20s for NIC init on ppc64
The genesis boot script sleeps 20 seconds unconditionally with the comment
"wait for NIC initialization", but that wait exists solely for System P LE
(ppc64) hardware discovery -- the surrounding section is explicitly ppc64
only. Every x86_64 and aarch64 node therefore pays a needless 20s delay on
each genesis boot.

Move the sleep inside the `[[ ${ARCH} =~ ppc64 ]]` block so only ppc64 waits.
Applied to the base script and both dracut_105 (el, ubuntu) variants.

Recovered from the unmerged lenovobuild branch (original d0916d9d).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-21 22:07:30 -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