mirror of
https://gitlab.com/fedora/bootc/base-images.git
synced 2026-08-29 20:40:44 +00:00
ELN manifests should only be installed on rawhide/main branch. When stable release branches are created (e.g., F44), the eln/ directory and fedora-eln.yaml should be manually removed from those branches to prevent ELN from being available on stable releases. This change installs ELN manifests conditionally rather than including 'eln' in the main loop, making it clearer that ELN is a special case that needs manual handling during release branching. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
28 lines
1,011 B
Bash
Executable file
28 lines
1,011 B
Bash
Executable file
#!/bin/bash
|
|
set -xeuo pipefail
|
|
# This script copies the manifests from the current directory
|
|
# into their installed location.
|
|
manifestdir=${1:-/usr/share/doc/bootc-base-imagectl/manifests}
|
|
mkdir -p "$manifestdir/"
|
|
for image in minimal standard minimal-plus iot; do
|
|
# Embed the generic defaults
|
|
cp -a $image $manifestdir/
|
|
# And the top-level Fedora-specific manifests
|
|
if [ -f $image.hidden.yaml ]; then
|
|
cp -a $image.hidden.yaml $manifestdir/
|
|
else
|
|
cp -a $image.yaml $manifestdir/
|
|
fi
|
|
# And the legacy `fedora-` prefixed names
|
|
cp -a fedora-$image.yaml $manifestdir/
|
|
done
|
|
# ELN is rawhide-only and should be removed when stable branches are created
|
|
# (manually remove eln/ directory and fedora-eln.yaml when branching for new releases)
|
|
if [ -d eln ]; then
|
|
cp -a eln $manifestdir/
|
|
cp -a fedora-eln.yaml $manifestdir/
|
|
fi
|
|
# Set the default
|
|
ln -s fedora-standard.yaml $manifestdir/default.yaml
|
|
# And install dependency manifests
|
|
cp -a fedora-includes $manifestdir
|