2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-12 12:36:23 +00:00
Commit Graph

11 Commits

Author SHA1 Message Date
Vinícius Ferrão 886db49e27 fix(postscripts): disable xcatpostinit1 before running the postscripts
The generated /opt/xcat/xcatinstallpost ran the install postscripts first and
only disabled the xcatpostinit1 service afterwards.  If one of those postscripts
rebooted the node (for example a firmware or kernel update), the service was
still enabled, so on the next boot the whole postscript set ran again from the
start.  Disable the service *before* running the postscripts so a mid-postscript
reboot cannot re-trigger them.

The disable decision reads OSVER (base variant only), RUNBOOTSCRIPTS and
NODESTATUS, which the included xcatinstallpost script would otherwise set.
Moving the INCLUDE below the disable block leaves those variables unset, so read
them up front (the included script re-reads them) and source xcatlib.sh so
msgutil_r is available; the disable decision is then identical to before.

The original change (lenovobuild 9184cbe0) touched only the legacy post.xcat.
Modern EL uses the systemd variants: post.xcat.ng (RHEL/CentOS 8 and 9) and
post.xcat.rhels10 (RHEL 10).  Apply the same reorder to all three so the fix
actually takes effect on current platforms.

Lab-validated with a full AlmaLinux 9.8 stateful install (post.xcat.ng path):
the generated xcatinstallpost disables the service before running the
postscripts, the postscripts run exactly once, the node reaches "booted", and
with the default NODESTATUS=1 the service is left enabled just as before.

Recovered from the unmerged lenovobuild branch (original 9184cbe0), adapted and
extended to the .ng and .rhels10 variants.

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-22 22:54:20 -03:00
Mark Gurevich 4a6ccf0ca5 Update docker build containers to CentOS8 (3) 2022-05-13 13:05:11 -04:00
Wai Yee Wong b082229c39 Add egrep -v "O=D|Directory" to remove irrelevant files from being copied from MN to CN. 2020-08-04 11:56:39 -04:00
Wai Yee Wong 3ecd60aa28 Change the regex in post.xcat.ng so that postscirpts with long filenames can still be downloaded from MN/SN to CN. 2020-07-24 16:11:22 -04:00
Wai Yee Wong 10fe1b81f6 Add execute permision to all files recursively under /xcatpost on the Compute Node. 2020-04-09 17:09:12 -04:00
GONG Jie d13097769f Port 2d4141b7d7 2019-01-08 13:42:49 +08:00
GONG Jie c6c5a5a346 Porting the `httpport' support patch from post.xcat to post.xcat.ng 2019-01-08 13:42:49 +08:00
Yuan Bai 735b121e15 classify deployment log and updatenode log (#5725)
* classify deployment log and updatenode log

* add deployment starting for xcatroot
2018-10-24 17:03:52 +08:00
Gᴏɴɢ Jie d58f00ed5a Support RHEL7->RHEL8 diskful installation (#5491)
* Make curl "fail" on >= 400 reponse codes with --fail

* Minor fix of post.xcat.ng

* Hack for RHEL8 Alpha - make network active by default
2018-08-29 17:25:32 +08:00
GONG Jie 461aa74609 Remove trailing spaces in file ./xCAT-server/share/xcat/install/scripts/post.xcat.ng 2017-12-31 23:59:59 +00:00
Gᴏɴɢ Jie 202e6d1ec3 Draft compute.rhels8.tmpl for RHEL8 Alpha Base OS (#5341)
Draft compute.rhels8.pkglist for RHEL8 Alpha Base OS
Draft pre.rhels8 for RHEL8 Alpha Base OS
Draft post.rhels8 for RHEL8 Alpha Base OS
Draft next generation post.xcat.ng
2018-08-06 16:47:07 +08:00