mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-22 10:22:18 +00:00
2a7364476e
The directory holds the Genesis image sources and, beside them, a builder that no pipeline runs. buildrpm, debuild-xcat-genesis-base, install, install.ubuntu, check, cmdlist_check, findmcprpms, xCAT-genesis-builder.spec and the root makerpm-genesisbuilder have no caller. So has build-ubunturepo, which builddebs.pl replaced, and its -r flag has set an unread variable since 2013. docs/source/references/coral/known_issues/genesis_base.rst tells the reader to install an rpm no build produces, and go-xcat offers to remove that package. Delete all of them, and rename the directory xCAT-genesis-base for what it holds: the dracut modules the EL spec and the Ubuntu builder read, the OpenEmbedded layers the GitHub job builds, the deb packaging, the image scripts and 80-net-name-slot.rules. Every reader of the old path is updated: buildrpms.pl, .gitattributes, the OE workflow and the OpenEmbedded tests. buildrpms.pl mapped the package xCAT-genesis-base to the directory xCAT-genesis-builder; the two names are the same now, so the mapping goes. xcat_probe_package_payload.t read build-ubunturepo for the probe helper staging. builddebs.pl stages them with XCAT::BuildUtils::stage_probe_helpers, which build_utils.t drives directly. genesis_base_sources_staged.t passes with this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
38 lines
941 B
Python
Executable File
38 lines
941 B
Python
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
oe_dir=$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)
|
|
: "${XCAT_GENESIS_WORK_DIR:=$oe_dir/.work}"
|
|
: "${KAS:=kas}"
|
|
|
|
supported_architectures='aarch64 armv7hf riscv64 s390x x86 x86_64 ppc64 ppc64le'
|
|
if [ "$#" -eq 1 ] && [ "$1" = '--list-architectures' ]; then
|
|
printf '%s\n' $supported_architectures
|
|
exit 0
|
|
fi
|
|
|
|
mkdir -p "$XCAT_GENESIS_WORK_DIR"
|
|
|
|
export KAS_WORK_DIR="$XCAT_GENESIS_WORK_DIR"
|
|
export KAS_BUILD_DIR="$XCAT_GENESIS_WORK_DIR/build"
|
|
|
|
if [ "$#" -eq 0 ]; then
|
|
set -- x86_64
|
|
fi
|
|
|
|
for architecture do
|
|
architecture_supported=0
|
|
for candidate in $supported_architectures; do
|
|
if [ "$architecture" = "$candidate" ]; then
|
|
architecture_supported=1
|
|
break
|
|
fi
|
|
done
|
|
if [ "$architecture_supported" -ne 1 ]; then
|
|
printf 'Unsupported Genesis architecture: %s\n' "$architecture" >&2
|
|
exit 2
|
|
fi
|
|
"$KAS" build "$oe_dir/kas/$architecture.yml"
|
|
done
|