2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-04 16:36:58 +00:00
Commit Graph

169 Commits

Author SHA1 Message Date
Vinícius Ferrão 7c86e14aa4 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>
(cherry picked from commit 32149f10f4)
2026-07-23 19:02:44 +00:00
Daniel Hilst a3ff1f1269 fix(xCAT-genesis-base): collapse usr-merged dirs in the netboot image
Building the genesis netboot image on a usr-merged host (openSUSE Leap
15, and increasingly EL) leaves the extracted root with /bin, /sbin,
/lib and /lib64 as real directories holding the same files that already
live under /usr/*. rpm then sees each binary twice (e.g. fs/bin/bash and
fs/usr/bin/bash) and aborts the install of xCAT-genesis-base with dozens
of file conflicts, so the package cannot be installed. After unpacking
the dracut image, fold those top-level directories into /usr and replace
them with relative symlinks, matching a normal usr-merged layout. The
loop is a no-op when the image already ships them as symlinks, so EL
builds are unaffected.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
(cherry picked from commit 0f100de5ac)
2026-07-19 12:19:47 -03:00
Daniel Hilst 2f572b49a6 fix(xCAT-genesis-base): make 2.14.5 -> 2.18 upgrade clean on EL8/EL9
A 2.17 -> 2.18 management-node upgrade installs xCAT-genesis-base 2.18 over the
2.14.5 payload that 2.17 shipped, and aborted in three ways that only surface on
the upgrade path (a fresh EL10 install never hit them):

1. usr/lib/dracut/hooks changed type: 2.14.5 shipped it as a real directory,
   modern dracut (EL8+) makes it a symlink to ../../../var/lib/dracut/hooks. RPM
   refuses to replace a directory with a symlink across an upgrade ("file ...
   conflicts"). The %pretrans removal does not help because rpm computes the
   conflict from package metadata, not the live filesystem. Materialize the
   symlink back into a real directory (with the hook contents) in %install so the
   payload type matches the installed 2.14.5 layout.

2. The %pretrans Lua used table.getn()/unpack(), removed in Lua 5.2+, so on
   EL8/EL9 (and any upgrade where the dirs exist) the scriptlet died with
   "attempt to call a nil value (field getn)". Use #t / table.unpack.

3. The %post ran "mknb" unconditionally; during a full "dnf update xCAT" xcatd is
   stopped, so mknb cannot connect and exited non-zero, failing the whole
   transaction. Tolerate the failure and leave the genesis-base-updated marker so
   the image is rebuilt once xcatd is back.

(cherry picked from commit f421c2b30c)
2026-07-19 12:19:47 -03:00
Daniel Hilst 67bcac1419 fix(xcat-genesis-base): bump package version to satisfy genesis-scripts
The genesis-base deb version was frozen at an ancient value, below the lower
bound required by xcat-genesis-scripts (xcat-genesis-base-amd64 >= 2.13.10).
apt therefore refused to install it and its dependents. Bump the version to
track current xCAT so the dependency resolves.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
(cherry picked from commit d8953b0ea6)
2026-07-19 12:19:46 -03:00
Daniel Hilst 638f0d75c4 Fix xCAT 2.18 EL10 x86_64 package build issues
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-20 18:48:14 -03:00
Daniel Hilst Selli baa2380cd2 fix: Move dracut call to the .spec
This fixes a problem where the dracut image was pulling artifacts from
the build host and not the mock image, e.g. building for EL9 in EL10.

Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-04-14 11:15:56 -03:00
Daniel Hilst Selli fccdc3ec64 fix: Fix genesis-base package build
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-03-30 20:46:42 -03:00
Daniel Hilst Selli 4a1905171d fix: Fix genesis boot in ppc64le
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-03-11 09:32:35 -03:00
Daniel Hilst Selli 0e0ead786f fix: Fix genesis & sequential node discovery in x86_64
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-02-25 14:08:40 -03:00
Daniel Hilst Selli d691c5ccda fix: [WIP] Build xCAT-genesis-base source package in buildrpms.pl
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-02-13 14:31:26 -03:00
Daniel Hilst Selli 8507813961 fix: Add script to build xCAT-genesis-base in EL10
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-02-06 15:28:10 -03:00
Abhishek S A e497b5aa60 Merge branch 'xcat2:master' into master 2024-07-26 16:06:23 +05:30
abhishek-sa1 5e7e00ffac xcat genesis fix for x86_64 2024-07-26 16:05:15 +05:30
Markus Hilger c8cb1d6a38 Merge pull request #7257 from Obihoernchen/aarch64
Initial aarch64 support, cross arch stateless images with qemu-user-static, grub2 for x86
2024-07-25 16:12:11 +02:00
Markus Hilger df64bf8feb Add missing shebang lines 2024-05-07 16:31:30 +02:00
Markus Hilger 295dff5c51 Fix genesis builds for aarch64 2024-02-21 11:59:50 +01:00
Markus Hilger 1fe4d1ce78 Next version will be 2.17.0 2024-02-19 19:40:50 +01:00
Mark Gurevich 272f9c17d7 Update README.md 2022-09-01 17:03:40 -04:00
Kilian Cavalotti f3ba47ef2e fix typo 2022-08-30 13:39:33 -07:00
Kilian Cavalotti d3a23d48dd hard-code latest xCAT version, in case this RPM is built outside of the xcat-core repo 2022-08-30 08:07:03 -07:00
Kilian Cavalotti 1508bff83c Fall back to the repository Version file when xCAT RPM is not installed 2022-08-26 09:12:17 -07:00
Kilian Cavalotti f5cc2631bf Update xCAT-genesis-base.spec
Automatically get xCAT version from installed package, rather than having to manually replace the `%%REPLACE_CURRENT_VERSION%%` string.
2022-08-23 08:27:07 -07:00
Mark Gurevich 3c643e6598 Genesis base based on Fedora 28 2021-10-14 16:57:14 -04:00
Mark Gurevich 83ee3d04a4 Remove epel-release from list of required RPMs 2021-10-07 15:59:11 -04:00
Mark Gurevich 8c38bda3b9 Update genesis-builder instructions and docs 2021-10-01 11:17:32 -04:00
Mark Gurevich d19f2bb0e3 Support building genesis-base on Fedora34 2021-09-30 10:23:56 -04:00
Mark Gurevich 35b8b165d0 Add chrony userid 2021-09-22 11:57:41 -04:00
Mark Gurevich 471fef6805 Allow Genesis Builder to run on RHEL8 Systems (2) 2021-09-22 09:21:50 -04:00
TheWitness adca7dad26 Allow Genesis Builder to run on RHEL8 Systems
This enhancement removes the requirement for the following packages:

* btrfs and related tools
* ntp and related tools
* deprecated/removed rsyslog library

So that the xCAT-genesis-builder can build base netboot images from a RHEL8 system.  There are some additional light formatting changes here as well.
2021-08-27 10:56:02 -04:00
GONG Jie 5b13cbc9f3 Revise the error handling for directory detecting 2018-10-31 16:09:26 +08:00
GONG Jie cda300faa7 Fix indents 2018-10-29 15:44:35 +08:00
GONG Jie 78a32bad30 Fix github issue #5740 - Avoid remove symbolic link as directory 2018-10-29 15:42:56 +08:00
GONG Jie 84307f4791 Remove trailing spaces in file xCAT-genesis-builder/xcatroot 2017-12-31 23:59:59 +00:00
GONG Jie 24612bbf32 Remove trailing spaces in file xCAT-genesis-builder/xcat-cmdline.sh 2017-12-31 23:59:59 +00:00
GONG Jie 4ac2d26b19 Remove trailing spaces in file xCAT-genesis-builder/install.ubuntu 2017-12-31 23:59:59 +00:00
GONG Jie 57f1e69ee8 Remove trailing spaces in file xCAT-genesis-builder/install 2017-12-31 23:59:59 +00:00
GONG Jie ae0d4ff55c Remove trailing spaces in file xCAT-genesis-builder/dhclient-script 2017-12-31 23:59:59 +00:00
GONG Jie 91c11adfc3 Remove trailing spaces in file xCAT-genesis-builder/debian/copyright 2017-12-31 23:59:59 +00:00
GONG Jie 12595dfa12 Remove trailing spaces in file xCAT-genesis-builder/buildrpm 2017-12-31 23:59:59 +00:00
ertaozh 360e3165ff Modify the error message 2018-05-24 23:04:39 -04:00
ertaozh a1ce787318 add cmdlist_check file which store the commands need to be included in install file 2018-05-24 06:19:59 -04:00
ertaozh 5b4bca86f0 Add back ntp-wait for building genesis-base on pegas 2018-05-11 04:22:02 -04:00
ertaozh 41b68a1478 add libnss_dns to xcat-genesis-base 2018-02-11 21:32:29 -05:00
GONG Jie e354ffc897 Fix clean install problem of xcat-genesis-base 2018-01-22 12:42:09 +08:00
zet809 35c2e4a43e Merge pull request #4624 from neo954/genesis
A script to convert xCAT-genesis-base rpm package to deb package
2018-01-17 14:26:28 +08:00
GONG Jie 3461396e9c Fix permission in xCAT-genesis-builder.spec 2018-01-17 14:02:54 +08:00
GONG Jie 0ce225b339 Update dependency for xCAT-genesis-base on Red Hat 2018-01-17 13:54:12 +08:00
GONG Jie 66c190d612 Add dependency for xcat-genesis-base on Debian/Ubuntu 2018-01-17 13:52:32 +08:00
GONG Jie 858270e666 Fix the error handling of command line argument checking 2018-01-17 13:03:42 +08:00
GONG Jie 03d6c72622 Minor tweaks for the debian packaging script of xcat-genesis-base 2018-01-12 16:17:54 +08:00