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

42 Commits

Author SHA1 Message Date
Vinícius Ferrão 6dbc16c216 fix(bmcsetup): enable BMC setup for Lenovo SR635/SR655
The original Lenovo SR635/SR655 (IPMI manufacturer 19046, product 1287) use an
AMI "TSM" BMC reached over a LAN-over-USB interface, which needs OEM raw commands
to bring the interface up, select the LAN channel, and restart TSM networking
once configured. Add a dedicated vendor branch for it -- gated on the same
IPMIMFG/XPROD check the script already uses for IBM, Dell, Supermicro, OpenPOWER
and other Lenovo machines -- plus a udev rule and helper that bring up the USB
NIC (169.254.0.120) so in-band ipmitool can reach the TSM. The user-slot
auto-scan is skipped for these machines, which use a fixed slot.

Everything is behind IPMIMFG=19046 && XPROD=1287 (or the 046b:ffb0 USB device),
so no other BMC is affected.

Recovered from the unmerged lenovobuild branch (922dfe18, 42357f9d, 02da8a6b,
765e2ad3, 408cf2b3), adapted to master's bmcsetup structure. The global MD5 LAN
auth removal that rode along in 42357f9d is intentionally left out -- SR635/SR655
IPMI authentication is already handled in master by #7586 (retry cipher suite 3
on a zero RAKP2 HMAC), so dropping MD5 for all BMCs is neither needed nor wanted
here.

Not lab-validated: this targets the original SR635/SR655 (product 1287); no such
machine was available to test (an SR635 V3 reports product 1601 and uses a
different, directly-reachable BMC). The code is gated so it cannot affect other
hardware.

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-23 16:43:41 -03:00
Daniel Hilst f6deff08bc fix(genesis-scripts): floor genesis-base requirement at 2:2.18.0
Requiring xCAT-genesis-base >= 2:%{version} coupled the flat xcat-core to a
matching genesis-base on every marketing-version bump: a 2.18.1 core refused
to install against the deployed 2.18.0 genesis-base. genesis-base changes
rarely and lives in the separate per-EL xcat-dep repo, so floor the requirement
at the fixed 2.18.0 baseline instead. Core version bumps no longer force a
genesis-base re-publish.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-07-09 22:05:49 -03:00
Daniel Hilst 23a5877480 fix(genesis-scripts): require genesis-base by version, not exact snap
genesis-base now ships in the per-EL xcat-dep repo while genesis-scripts ships
in the flat xcat-core. The exact "= 2:%{version}-%{release}" dependency forced
core and dep to be republished in lockstep on every core rebuild (a new snap in
core could not be installed until the exact-matching genesis-base snap was also
published to the client's dep channel -- which broke a production client).

Relax to ">= 2:%{version}": epoch 2, version >= 2.18.0, any release/snap. RPM
ignores the release when the dependency omits it, so any same-version (or newer)
genesis-base satisfies it. Routine core snaps no longer require a genesis-base
re-publish; lockstep now only matters on version bumps and the initial publish.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-30 19:19:33 -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 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
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 2643c1edd6 Remove useless executable bit 2024-05-07 16:19:25 +02:00
Markus Hilger 295dff5c51 Fix genesis builds for aarch64 2024-02-21 11:59:50 +01:00
Mark Gurevich 4a6ccf0ca5 Update docker build containers to CentOS8 (3) 2022-05-13 13:05:11 -04:00
ertaozh a2d2ed1d34 From 2.13.10, the genesis scripts is moved to usr/bin or usr/sbin 2018-01-17 03:41:35 -05:00
Samveen Gulati 63a3efe8bb move /*bin to /usr/ to fix path conflict of genesis base and scripts
RH7/Centos7 and recent versions of fedora relocate `/*bin/*` into `/usr/*bin/`. This causes
conflicts for upgrades against xCAT-genesis-scripts-* packages which expect the `/bin` a to be
a directory while `xCAT-genesis-base-*` packages provide a link. Relocating all files into `/usr`
fixes that conflict and allows a clean upgrade from all old versions.
2018-01-12 06:06:25 +00:00
ertaozh 5323cd4f64 To have xcat-genesis-script depended on xcat-genesis-base 2.13.2 2017-02-21 03:23:43 -05:00
GONG Jie 398494a32c Fix typo. Remove unused lines. 2017-01-05 11:07:45 +08:00
GONG Jie 65c2911888 Make all the rpm packages have the exactly same version and release numbers 2017-01-03 12:47:14 +08:00
ertaozh 40e9608cf4 To have xcat-genesis-script depended on xcat-genesis-base 2.13.0 or higher 2016-12-07 02:10:32 -05:00
Victor Hu 4aab65ea0a Revert the naming back to using snap<date> and instead use the
Epoch keyword to control the priority of the xCAT-genesis-base package
2016-12-05 13:58:27 -05:00
Victor Hu b30ed57db2 - Bump up the version to 2.13.0
- Edit the makerpm to replace version of xCAT-genesis-base.spec
  file so there's no need to manually set the VERSION.  We
  do need a better way for the RELEASE variable
- Require xCAT-genesis-base >= 2.13.0 for the rebuild of genesis-base
- Clean up the builder rpm to include directories to clean up correctly
  on rpm removal
2016-12-02 17:38:14 -05:00
Jarrod Johnson edb1d181e9 Provide hook for saner versioning
The traditional approach was not adequately
hooked into git.  It should do nothing by
default differently.
2016-09-28 08:43:35 -04:00
ertaozh 8b5f44c44a Modify xcat-genesis-script pkg name for ubuntu 2016-08-10 01:23:06 -04:00
ertaozh 967ff2a33a modify genesis scripts spec for debian/control to be debian/control-amd64 and debian/control-ppc64elwq 2016-07-20 04:18:05 -04:00
Patrick Lundgren d6f0c89d43 Added block to restart rsyslogd after dhclient has been restarted. Moved restart to xCAT-genesis-scripts 2016-07-18 13:35:44 -04:00
Victor Hu ceb29d0c2c Commit 4fea80d7 added two files that are missed in the spec file
causing the build to break
2016-05-05 20:10:55 -04:00
Xiaopeng Wang d99bc965e0 Revert "Adding two new files to xCAT-genesis-scripts spec file to resolve build error" 2016-05-04 16:24:36 +08:00
Victor Hu b5db5ffeba Commit 4fea80d7 added two files that are missed in the spec file
causing the build to break
2016-05-02 11:52:08 -04:00
chenglch 0dcec9401f Add getadapter in genesis build spec 2015-12-17 21:57:17 -05:00
bybai 837552f31a configraid support scripts 2015-09-29 03:52:33 -04:00
bybai a666f2d143 add raidcmd and raidutils 2015-09-16 03:07:53 -04:00
bybai 79c3f5ffa5 add diskdiscover 2015-09-11 03:37:40 -04:00
lissav c40c63ad77 defect 4329 2014-10-28 09:38:02 -04:00
ligc 24f771dbe6 fix rpm packaging problem with xCAT-genesis-scripts 2014-10-13 03:31:06 -04:00
ligc 9a05a5ea1f fix the file <xxxxdirectory> from install of xCAT-genesis-scripts-ppc64-1:2.9-snap201408210348.noarch conflicts with file from package xCAT-genesis-base-ppc64-1:2.9-snap201408210346.noarch, if the rpms are built on RHEL 7 or Fedora 20 2014-08-26 04:29:01 -04:00
ligc fc6536eb30 fix for bug 4150: modify xCAT-genesis-scripts.spec, xCAT-genesis-base.spec and xcatconfig to not run mknb twice during xcat installation/update 2014-07-27 22:43:38 -04:00
ligc c4223de958 xCAT-genesis-scripts spec to work for both x86_64 and ppc64 2014-07-03 17:49:13 -05:00
bp-sawyers 2e9d460772 xCAT-genesis-scripts rpm version was mistakenly hard-coded to 2.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15242 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-22 15:18:12 +00:00
bp-sawyers 11dd240272 make sure /etc/xcat exists before xCAT-genesis-scripts tries to touch a file there
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14943 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 12:24:50 +00:00
bp-sawyers 27a7ca0556 Fix bugs 3284 and 3285 - xCAT-genesis-scripts-x86_64 trying to run mknb when xcatd is not ready
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14921 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 17:26:23 +00:00
bp-sawyers ef544a9133 Fixed xCAT-genesis-scripts rpm to run mknb even if not upgrade, as long as mknb exists
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14849 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 18:52:34 +00:00
jbjohnso db2261cd02 Move IMM support from builder to scripts
Create a fake ifup to fixup IMM network during uxspi execution

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14787 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 19:50:18 +00:00
jbjohnso 2a0f568135 Fix problems with new packaging of genesis
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 19:22:16 +00:00
jbjohnso 6d8b0c8186 Fix the way scripts/base obseletes the unified package so that it will only happen on xcat-core update
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14590 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 16:25:46 +00:00
jbjohnso c0ad20c3cf Further tweak the genesis repackaging
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14588 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 15:59:50 +00:00
jbjohnso dde7db8565 Add tree for teh overlay package
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14587 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 15:59:34 +00:00