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

379 Commits

Author SHA1 Message Date
Daniel Hilst aeaf4df315 Merge pull request #7676 from VersatusHPC/harvest/sle-root-partition-max
fix(sle): give the SUSE root partition the whole disk (align with RHEL/Ubuntu)
2026-07-27 15:22:58 -03:00
Daniel Hilst 90b63577f5 Merge pull request #7664 from VersatusHPC/harvest/getinstdisk-vroc
fix(getinstdisk): use an Intel RSTe/VROC RAID when no other disk is found
2026-07-27 10:34:30 -03:00
Vinícius Ferrão b33eb5e1c6 fix(sle): give the SUSE root partition the whole disk (auto -> max)
The SLE AutoYaST profile sized the root partition with <size>auto</size>, which
lets YaST pick a size and can leave the rest of the disk unused. RHEL
(part / --grow) and Ubuntu (root uses the remaining space) both give root the
whole disk; make SUSE consistent by using <size>max</size>. Swap stays auto.

Recovered from the unmerged lenovobuild branch (9a8679f4).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-23 21:53:16 -03:00
Vinícius Ferrão 009dac9834 fix(getinstdisk): use an Intel RSTe/VROC software RAID when no other disk is found
On a node whose OS disk is an Intel RSTe/VROC software RAID (/dev/md/Volume0_0
or /dev/md/Volume0), disk auto-detection finds nothing and getinstdisk falls
back to the hard-coded /dev/sda. Prefer the VROC volume over that default.

Only fires when no install disk was otherwise selected and the VROC device
actually exists, so it cannot mis-select over a real disk and has no effect on
non-VROC systems. The original commit hooked into a lenovobuild-specific M.2
detection block absent from master; adapted to master's fallback point.

Not lab-validated (no VROC hardware available).

Recovered from the unmerged lenovobuild branch (c6c70e5).
2026-07-23 19:17:49 -03:00
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
Vinícius Ferrão 9f33b19214 fix: restore legacy SLES provisioning paths 2026-05-05 17:09:37 -03:00
Markus Hilger d5831828d6 Merge pull request #7533 from VersatusHPC/fix/opensuse-leap-support
feat: add openSUSE Leap 15 and SLES 15 provisioning support
2026-05-04 17:20:59 +02:00
Vinícius Ferrão a6145b402b Merge pull request #7534 from VersatusHPC/fix/el10-bios-stateful-biosboot
fix: add EL10 BIOS boot partition
2026-05-03 02:36:39 +02:00
Vinícius Ferrão 5aa1cda179 feat: add openSUSE Leap 15 provisioning support 2026-05-02 16:57:46 -03:00
Vinícius Ferrão 1f9173f07a Fix some EL9 and EL10 provisioning gaps (#7530)
* Fix EL9 and EL10 provisioning gaps
2026-05-02 04:27:54 +02:00
Vinícius Ferrão 023beff053 Add Ubuntu 26.04 provisioning support 2026-05-01 11:13:45 -03:00
Vinícius Ferrão 1babd7b0e4 fix: improve Ubuntu LTS provisioning support 2026-04-29 18:19:12 -03:00
Daniel Hilst Selli 3cb359e711 feat: Add support for RHEL 10
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2025-11-26 16:07:19 -03:00
Andrey Kiryanov 8432960e02 Automatically add biosboot partition on >2TB drives with RHEL 7/8 (#7400)
Co-authored-by: Andrey Kiryanov <kiryanov_ak@pnpi.nrcki.ru>
2024-06-24 23:37:02 +02:00
Markus Hilger dc13997f14 Remove even more useless executable permissions 2024-05-07 16:34:59 +02:00
Mark Gurevich a886e8c480 Enable go-xcat to insall xCAT on Alma Linux 2023-01-19 13:11:41 -05:00
Mark Gurevich 4a6ccf0ca5 Update docker build containers to CentOS8 (3) 2022-05-13 13:05:11 -04:00
besawn cf1dbe78bc Merge pull request #6975 from NCI-Cloud/master
Add initial support for deploying Ubuntu 20.04 nodes.
2022-01-26 14:31:15 -05:00
Wai Yee Wong fa7ed9f8a0 Disable internet repos to avoid unexpected and silent upgrades 2022-01-06 22:46:11 -05:00
Simon Fowler 55c521a405 Add initial support for deploying Ubuntu 20.04 nodes.
This configures automated installation using the subiquity installer, as
documented at
https://ubuntu.com/server/docs/install/autoinstall-quickstart and other
locations on the Internet.

Installation uses the NFS export of /install, and configures the
installer to use the nocloud-net datasource, creating a per-node
directory containing the processed template file as the user-data file,
and an empty meta-data file.

Kernel and initrd files are pulled from the casper/ directory under the
package dir.

Unnecessary elements of the kernel command line have been removed in the
subiquity installer path.

Support has been added for selecting a subiquity specific default
template, as well as an updated pre-install script and some minor POSIX
shell compliance fixes for the getinstdisk script.
2021-12-13 11:54:49 +11:00
Jarrod Johnson 5251e67c00 Fix mistake where someone used ext4
RHEL uses xfs by default, selecting ext4 is a peculiar thing
to do.
2021-04-29 15:04:25 -04:00
Mark Gurevich 5ead6c1bda Use 'find' to reliably find vmlinu* file on the partition 2021-03-23 15:34:39 -04:00
Mark Gurevich ef814440be Extract correct size of the nvme disk partition 2021-03-03 13:51:27 -05:00
Mark Gurevich 01780a010e Improve debug messages and comments 2021-02-26 13:00:33 -05:00
Mark Gurevich d0f486ce10 Use case instead of if which does not work on Ubuntu 2020-09-02 17:00:50 -04:00
Mark Gurevich de705f06db Support OS install on nvme disk 2020-08-28 11:13:15 -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
Mark Gurevich 239f883e5f Set UEFI filesystem to fat32 2020-06-01 10:13:50 -04:00
Mark Gurevich 6743873e89 Use ext4 filesystem instead of ext3 2020-04-29 09:06:57 -04:00
besawn 81200d602a Merge pull request #6669 from peterwywong/postscripts_permission
Add execute permission to all files recursively under /install/postscripts
2020-04-21 09:41:48 -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
Mark Gurevich bead8ba117 Partitioning of disk too large 2020-03-12 11:15:02 -04:00
Mark Gurevich d6fb685030 Size flag error when partitioning RHEL8 2020-03-10 11:50:23 -04:00
Mark Gurevich 34161b240b RHEL8 disk partition template 2020-03-09 16:29:33 -04:00
cxhong 70d51e15c6 modify checking from sles to sle 2020-02-12 16:08:59 -05:00
cxhong 2245b278fa Support otherpkgs as postbootscript for SLE15 2020-01-16 17:34:27 -05:00
cxhong c5c5ee3023 Support SLE15 diskfull installation 2019-11-19 15:48:09 -05:00
yangsong 319d30da28 Merge pull request #6219 from neo954/rhels8-partition
A new partition scheme for RHEL 8
2019-04-18 14:05:52 +08:00
GONG Jie 6e6a020978 Revise error handling for function getdisksize() 2019-04-17 15:36:38 +08:00
GONG Jie b2dd4a5a56 Revise error handling for function getdisksize() 2019-04-17 15:34:25 +08:00
GONG Jie 3a66210a4d Add function base64decode() into file pre.sles 2019-04-17 15:23:27 +08:00
GONG Jie b8383a7e65 Add function base64decode() into file pre.sle15 2019-04-17 15:23:17 +08:00
GONG Jie 773ff1b7bf Add function base64decode() into file pre.rh 2019-04-17 15:23:03 +08:00
GONG Jie a1ec58c5ba Add function base64decode() into file pre.pkvm3 2019-04-17 15:22:51 +08:00
GONG Jie a62468da34 Patch pre.rhels8 2019-04-11 18:04:39 +08:00
GONG Jie 2e726e81a9 A new partition scheme for RHEL 8 compute node 2019-04-11 18:04:31 +08:00
GONG Jie 6d549c1fdd Get disk size of install disk 2019-04-11 18:04:26 +08:00
GONG Jie 58441c8489 Make variable output byte instead of string 2019-03-21 16:25:17 +08:00
Gᴏɴɢ Jie 4435960f4a Fix python error, TypeError: cannot use a string pattern on a bytes-like object (#6137) 2019-03-20 18:06:15 +08:00