2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-16 15:27:02 +00:00
Commit Graph

434 Commits

Author SHA1 Message Date
Vinícius Ferrão 825fbb8d2b refactor(netboot): expose install image policies 2026-09-01 10:50:24 -03:00
Vinícius Ferrão 3917fd8345 feat(xCAT-server): add EL10 riscv64 osimage profiles
Provide the compute and service profiles for rocky10 and rhels10 on
riscv64: netboot pkglist/exlist/postinstall files and the service
otherpkgs lists for netboot and install. They mirror the x86_64 profiles
(every package resolves in the Rocky 10 riscv64 BaseOS/AppStream/CRB
repositories and the minimal-environment group exists there), with the
kbd keymap exclude spelled correctly, the duplicate man exclude dropped,
and goconserver pulled from the rh10/riscv64 dependency repository.
2026-09-01 10:50:20 -03:00
Vinícius Ferrão 2ef44d5d7f feat(xCAT-server): install and netboot EL10 riscv64 nodes
EL riscv64 media lay out the installer kernel and initrd under
images/pxeboot exactly like x86 and aarch64 media, but anaconda.pm only
looked there for those two families and geninitrd.pm refused riscv64
outright ("unknow arch"). Treat riscv64 like x86/aarch64 in both
places and recognise riscv64 kernels when a driver disk updates the
installer kernel. There is no riscv64 SUSE media, so geninitrd keeps the
unsupported-architecture error for sles/suse rather than reading the x86
SUSE layout.

Diskless images get a riscv64 default network driver list (virtio,
Intel, Realtek, Broadcom and Mellanox) and take the resolver libraries
from lib64, which is where riscv64 EL puts them.
2026-09-01 10:50:19 -03:00
Vinícius Ferrão fc9a94edb6 Merge pull request #7765 from VersatusHPC/refactor/genimage-shared-os-version-parser
refactor(genimage): reuse shared OS version parser
2026-08-29 16:45:41 -03:00
Vinícius Ferrão 801677d447 genimage: include available Mellanox InfiniBand drivers 2026-08-28 14:30:43 -03:00
Vinícius Ferrão c6c7df99bd genimage: resolve Mellanox defaults from target kernel
Resolve optional Mellanox network drivers against the target image's selected kernel. Keep real mlx_en modules, fall back to mlx4_en, include available mlx5_core, and omit missing defaults without changing explicitly requested netdrivers.
2026-08-28 12:48:17 -03:00
Vinícius Ferrão e685d7e0ec refactor(genimage): reuse shared OS version parser
Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-08-26 16:42:51 -03:00
Daniel Hilst e3f3862280 fix(xcat-core): drop trailing blank line in rhels9 ppc64le pkglist
PR #7677 added xCAT-server/share/xcat/netboot/rh/compute.rhels9.ppc64le.pkglist
with a stray empty line at the end of the file. The reviewer asked for it to be
removed before merge, but it slipped through. A trailing blank line in a pkglist
is meaningless and inconsistent with the rest of the netboot package lists, so
remove it.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-07-28 16:44:22 -03:00
Daniel Hilst 8bb0606120 fix(xcat-core): add the missing ppc64le netboot templates for EL8/EL9
copycds only defines a <osver>-<arch>-netboot-compute osimage when the netboot
compute pkglist/exlist/postinstall for that distro+arch exist under
share/xcat/netboot/<distro>/. For AlmaLinux the ppc64le set was present only for
alma10, so on an el8/el9 ppc64le management node copycds created just the
install-* osimages and no netboot one.

The stateless provisioning test then fails in a confusing way: the case's own
`chdef -t osimage -o <osver>-ppc64le-netboot-compute synclists=...` auto-creates
a bare object, so lsdef reports the image exists (imagetype=NIM and nothing
else), while genimage rejects it with

    Error: Cannot find image '<osver>-ppc64le-netboot-compute' from the osimage table.

and packimage plus the install that follows fail with it.

Two gaps are filled:
- share/xcat/netboot/rh/compute.rhels9.ppc64le.pkglist did not exist at all
  (rhels8 and rhels10 both ship one). Add it with the same content as the
  rhels9 x86_64 list, matching rhels10 where the two arches are identical.
- alma8/alma9 ppc64le compute exlist/pkglist/postinstall are added as symlinks
  into the rh/ equivalents, exactly as alma10 ppc64le and rocky10 ppc64le
  already do.

With these present, copycds produces a fully populated netboot-compute osimage
(provmethod=netboot, pkglist/exlist/postinstall/rootimgdir set) as it already
does on alma10 ppc64le.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-07-23 21:39:23 -03:00
Vinícius Ferrão 7d59ccaccb fix(netboot): allow the rootfs image to be downloaded over HTTPS
The diskless/statelite xcatroot scripts only recognize an http:// rootfs
image URL; an https:// imgurl falls through to the "unsupported" path even
though the download itself already uses wget/curl on the full $imgurl, both
of which handle TLS.

Accept xhttps alongside xhttp in the protocol test. Applied to every current
xcatroot variant (rh dracut/dracut_033/dracut_047/dracut_105 stateless and
statelite, plus fedora, sles and ubuntu), so HTTPS works uniformly rather
than only on the three rh scripts the original touched.

Recovered from the unmerged lenovobuild branch (original 751bce24, extended
to the dracut generations and distros that postdate it).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-22 00:49:04 -03:00
Vinícius Ferrão f568251df1 Add EL10 netboot profile files for rh base directory
Create proper rhels10 versions of exlist, postinstall, service
pkglist, and service otherpkgs files instead of reusing rhels9.

Key differences from rhels9:
- service otherpkgs: xcat-dep path rh9 -> rh10
- service pkglist: drop dhclient (NetworkManager handles DHCP)

Compute exlist and postinstall are identical to rhels9 for now but
kept separate to allow EL10-specific changes without affecting EL9.
2026-05-10 01:57:12 -03:00
Vinícius Ferrão 57daff8a31 Use dnf for EL8+ RH genimage installroot 2026-05-07 12:54:38 -03:00
Vinícius Ferrão 88da644249 Merge pull request #7532 from VersatusHPC/fix/el10-netboot-dhcp-client
fix: use NetworkManager for EL10 netboot DHCP instead of dhclient
2026-05-04 17:20:11 +02: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
Daniel Hilst Selli d309601a30 fix: Fix templates for EL10 in ppc64le enviroment
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-03-12 11:27:37 -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
Markus Hilger 10a485dca5 Improve genimage AlmaLinux support 2025-05-23 19:27:37 +02:00
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 a5ed2d690e Fix goconserver path for EL9 2024-04-21 17:09:53 +02:00
Markus Hilger 55d6d13fe4 Add perl-lib required for xCAT on EL9 2024-04-21 16:13:13 +02:00
Markus Hilger b27f419b25 qemu-user-static support for genimage + aarch64 support 2024-02-21 11:59:50 +01:00
Markus Hilger 3fca2a3031 Fix dracut warnings during genimage on newer OSs 2024-02-12 16:42:03 +01:00
Mark Gurevich a886e8c480 Enable go-xcat to insall xCAT on Alma Linux 2023-01-19 13:11:41 -05:00
Markus Hilger e60265ef90 Do not exclude ./usr/lib/locale/C*
Missing C locale can cause issues with programs like tmux
2022-12-08 18:20:12 +01:00
Markus Hilger be8297e4c9 Fix warnings of newer dracut versions
dracut: WARNING: <key>+=" <values> ": <values> should have surrounding white spaces!
dracut: WARNING: This will lead to unwanted side effects! Please fix the configuration file.

dracut commit: https://github.com/dracutdevs/dracut/commit/dfe2247a43d6a216d9af533825c9a103e3b056cd
2022-05-18 11:54:57 +02:00
besawn 6c00ed5b57 Merge pull request #7137 from khm/genimage-rocky
rh/genimage:  update systemd list to include Rocky Linux
2022-04-15 09:03:17 -04:00
Mark Gurevich f5a9be5050 Initial template and pkg files for RHEL9 2022-04-13 09:51:24 -04:00
Kurt H Maier 0caaa750dd rh/genimage: update systemd list to include Rocky Linux 2022-03-25 10:48:40 -07:00
Wai Yee Wong fa7ed9f8a0 Disable internet repos to avoid unexpected and silent upgrades 2022-01-06 22:46:11 -05:00
Mark Gurevich af3958f369 Better test when removing firewalld service files 2021-10-28 14:41:40 -04:00
Mark Gurevich 4998f3b9e4 Use inst instead of inst_rules to install into diskless image 2021-10-19 13:28:45 -04:00
Vinícius Ferrão f82b6f48af Support for Oracle Linux 7 and Oracle Linux 8 2021-03-11 17:34:17 -03:00
cxhong b81ec51f67 Add perl-interpreter to other pkglist 2020-09-28 10:35:01 -04:00
cxhong 90d1b1eca2 Add perl to the rhels8 pkglist 2020-09-25 16:40:47 -04:00
Mark Gurevich 2111baba47 Verify if kernel-modules-extra exists before adding 2020-08-17 16:12:56 -04:00
cxhong 3097702dc9 Add kernel-modules-extra to dracut module list 2020-08-13 17:42:56 -04:00
Mark Gurevich 39e4e982bf Replace misspelled gpgpcheck with gpgcheck 2020-07-15 09:26:58 -04:00
Mark Gurevich a9e059d90f Do not use modinfo to test module availability 2020-05-04 16:23:42 -04:00
besawn de293fced4 Merge pull request #6680 from gurevichmark/squashfs_overlay
Use overlay mount type for squashfs diskless images
2020-04-29 09:59:21 -04:00
cxhong e22130a46b add mkfs.xfs to older version of dracut 2020-04-23 12:35:49 -04:00
Mark Gurevich a002157251 Use overlay mount type for squashfs diskless images 2020-04-22 16:03:29 -04:00
cxhong 770be38f0c Support xfs filesystem for statelite images 2020-04-22 15:44:35 -04:00
cxhong 9381e8a2dc remove ntp from rhel8 pkglist 2020-03-25 12:08:50 -04:00
besawn 45d6b6c700 Merge pull request #6641 from cxhong/pkglist
add more package to diskless package list for rhels8.1
2020-03-23 17:38:30 -04:00
cxhong 66d5d6cc4c arrange the pkglist 2020-03-23 14:58:27 -04:00
cxhong e7f4d72873 Add more package for x86_64 and service pkglist 2020-03-19 16:06:10 -04:00
cxhong 258f7cfd3c add more package to diskless package list for rhels8.1 2020-03-18 16:36:02 -04:00
cxhong 5e507add00 Disable firewalld on rhels8 compute node 2020-02-26 15:24:37 -05:00
cxhong ee62a970b4 Modify pkglist to clean up genimage warning messages 2019-11-12 16:31:49 -05:00
cxhong 71ee0da3dd Add bzip2 to rhels8 pkglist 2019-06-05 16:07:58 -04:00