Compare commits

2 Commits

Author SHA256 Message Date
c0706fadde Update for SLES 16.0
- change name of release package: sles -> SLES
- No longer handle package 'rpm' in a special way:
  * remove rmp-md
  * no longer OBS-IgnorePackage: rpm
- Convert to XML schema version 7.4

Signed-off-by: Egbert Eich <eich@suse.com>
2025-11-05 08:52:09 +01:00
5abf448e0d Add SLES 15 SP7 version
Signed-off-by: Egbert Eich <eich@suse.com>
2025-11-05 08:38:51 +01:00
4 changed files with 240 additions and 0 deletions

4
_service Normal file
View File

@@ -0,0 +1,4 @@
<services>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service mode="buildtime" name="kiwi_label_helper"/>
</services>

79
config.sh Normal file
View File

@@ -0,0 +1,79 @@
#!/bin/bash
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile
echo "Configure image: [$kiwi_iname]..."
#======================================
# Setup baseproduct link
#--------------------------------------
if [ ! -e /etc/products.d/baseproduct ]; then
suseSetupProduct
fi
#======================================
# Import repositories' keys
#--------------------------------------
suseImportBuildKey
#======================================
# Create container exit
#--------------------------------------
mkdir -p /etc/warewulf
cat > /etc/warewulf/container_exit.sh <<EOF
#!/bin/sh
LANG=C
LC_CTYPE=C
export LANG LC_CTYPE
set -x
zypper clean --all
EOF
chmod 755 /etc/warewulf/container_exit.sh
#======================================
# Create exclude
#--------------------------------------
cat > /etc/warewulf/excludes <<EOF
/boot/
/usr/share/doc
/usr/share/man
EOF
chmod 644 /etc/warewulf/excludes
#======================================
# Create systemd/system-preset/85-ww4-node-default.preset
#--------------------------------------
cat > /usr/lib/systemd/system-preset/85-ww4-node-default.preset <<EOF
enable sshd.service
EOF
chmod 644 /usr/lib/systemd/system-preset/85-ww4-node-default.preset
systemctl preset sshd.service
#======================================
# create an empty resolv.conf
#--------------------------------------
test -e /etc/resolv.conf || touch /etc/resolv.conf
#===========================================
# create empty SCC files if they don't exist
#-------------------------------------------
test -e /etc/SUSEConnect || touch /etc/SUSEConnect
test -e /etc/zypp/credentials.d/SCCcredentials || touch /etc/zypp/credentials.d/SCCcredentials
#===========================================
# We only want one kernel
#------------------------------------------
sed -i -e "/^multiversion = .*(kernel)/s@\(.*\)@# \1@g" /etc/zypp/zypp.conf
exit 0

6
hpc-node.changes Normal file
View File

@@ -0,0 +1,6 @@
-------------------------------------------------------------------
Mon Jul 28 09:59:34 UTC 2025 - Egbert Eich <eich@suse.com>
- Initial release (jsc#PED-7934, jsc#PED-3036).

151
hpc-node.kiwi Normal file
View File

@@ -0,0 +1,151 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: MIT -->
<!--
Copyright (c) 2025 SUSE LLC
All modifications and additions to the file contributed by third parties
remain the property of their copyright owners, unless otherwise agreed
upon.
Please submit bugfixes or comments via https://bugs.opensuse.org/
You can contact the BCI team via https://github.com/SUSE/bci/discussions
-->
<!-- OBS-Imagerepo: obsrepositories:/ -->
<!-- OBS-ExcludeArch: i586 -->
<!-- OBS-ExclusiveArch: x86_64 aarch64 -->
<image schemaversion="7.4" name="hpc-node-image">
<description type="system">
<author>SUSE LLC</author>
<contact>https://www.suse.com/</contact>
<specification>Warewulf4 SLE Node Base Image</specification>
</description>
<preferences>
<type image="docker">
<containerconfig name="suse/hpc/warewulf4-%ARCH%/hpc-node" tag="latest" maintainer="SUSE LLC (https://www.suse.com/)" additionaltags="%OS_VERSION_ID_SP%,%OS_VERSION_ID_SP%.%RELEASE%">
<labels>
<!-- See https://en.opensuse.org/Building_derived_containers#Labels -->
<suse_label_helper:add_prefix xmlns:suse_label_helper="com.suse.label_helper" prefix="com.suse.hpc-node">
<!-- @@ -->
<label name="org.opencontainers.image.title" value="Warewulf4 SLE Node Base Image"/>
<label name="org.opencontainers.image.description" value="Image containing a base environment to install HPC nodes."/>
<label name="org.opencontainers.image.version" value="%OS_VERSION_ID_SP%.%RELEASE%"/>
<label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
<label name="org.opencontainers.image.vendor" value="SUSE LLC"/>
<label name="org.opencontainers.image.url" value="https://www.suse.com/products/server/"/>
<!-- @@ -->
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
<label name="org.suse.reference" value="registry.suse.com/suse/hpc-node:%OS_VERSION_ID_SP%.%RELEASE%"/>
</suse_label_helper:add_prefix>
<label name="com.suse.supportlevel" value="l3"/>
<label name="com.suse.image-type" value="sle-bci"/>
<!-- @@ -->
<label name="com.suse.release-stage" value="beta"/>
<label name="com.suse.eula" value="sle-eula"/>
<!-- @@ -->
<label name="com.suse.lifecycle-url" value="https://www.suse.com/lifecycle"/>
</labels>
</containerconfig>
</type>
<version>15.6.0</version>
<packagemanager>zypper</packagemanager>
<rpm-check-signatures>false</rpm-check-signatures>
<rpm-excludedocs>true</rpm-excludedocs>
</preferences>
<repository type="rpm-md">
<source path="obsrepositories:/"/>
</repository>
<packages type="delete">
<package name="fillup"/>
<package name="perl"/>
</packages>
<packages type="bootstrap">
<package name="aaa_base"/>
<package name="cracklib-dict-small"/>
<package name="filesystem"/>
<!-- <package name="rpm-ndb"/> -->
<package name="shadow"/>
<package name="SLES-release"/>
<package name="zypper"/>
</packages>
<packages type="image">
<package name="bash"/>
<package name="ca-certificates-mozilla"/>
<package name="bash-completion"/>
<package name="coreutils"/>
<package name="curl"/>
<package name="device-mapper"/>
<package name="dmidecode" arch="aarch64,x86_64"/>
<!-- <package name="dosfstools"/> -->
<!-- <package name="dracut"/> -->
<!-- <package name="e2fsprogs"/> -->
<package name="ethtool"/>
<package name="findutils"/>
<package name="gawk"/>
<package name="glibc-locale-base"/>
<!-- <package name="grub2"/> -->
<!-- <package name="haveged"/> -->
<!-- <package name="hdparm"/> -->
<package name="iproute2"/>
<package name="iptables"/>
<package name="iputils"/>
<package name="issue-generator"/>
<package name="jq"/>
<package name="kernel-default"/>
<package name="kernel-firmware-bnx2"/>
<package name="kernel-firmware-chelsio"/>
<package name="kernel-firmware-liquidio"/>
<package name="kernel-firmware-marvell"/>
<package name="kernel-firmware-mediatek"/>
<package name="kernel-firmware-mellanox"/>
<package name="kernel-firmware-network"/>
<package name="kernel-firmware-platform"/>
<package name="kernel-firmware-qlogic"/>
<package name="kernel-firmware-realtek"/>
<package name="kernel-firmware-usb-network"/>
<package name="kernel-firmware-i915" arch="x86_64"/>
<package name="kernel-firmware-intel" arch="x86_64"/>
<package name="less"/>
<package name="lshw"/>
<package name="lsof"/>
<package name="lsscsi"/>
<package name="mdadm"/>
<package name="multipath-tools"/>
<package name="netcat-openbsd"/>
<package name="NetworkManager"/>
<package name="NetworkManager-branding-SLE"/>
<package name="nfs-client"/>
<package name="open-iscsi"/>
<package name="openssh"/>
<package name="pciutils"/>
<package name="procps"/>
<package name="psmisc"/>
<package name="rsync"/>
<package name="shim" arch="aarch64,x86_64"/>
<!-- <package name="squashfs"/> -->
<package name="strace"/>
<package name="suse-build-key"/>
<package name="sysstat"/>
<package name="systemd"/>
<package name="tar"/>
<package name="timezone"/>
<package name="traceroute"/>
<package name="vim-small"/>
<package name="which"/>
<package name="zstd"/>
<package name="NetworkManager"/>
<package name="container-suseconnect"/>
<!-- -->
<package name="systemd-presets-common-SUSE"/>
<package name="grub2-x86_64-efi" arch="x86_64"/>
<!-- <package name="kernel-firmware-i915" arch="x86_64"/> -->
<!-- <package name="kernel-firmware-intel" arch="x86_64"/> -->
<package name="grub2-arm64-efi" arch="aarch64"/>
</packages>
</image>