2025-02-21 13:10:22 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -xeuo pipefail
|
|
|
|
|
# This script copies the manifests from the current directory
|
|
|
|
|
# into their installed location.
|
2025-03-12 09:26:08 -04:00
|
|
|
manifestdir=${1:-/usr/share/doc/bootc-base-imagectl/manifests}
|
2025-02-21 13:10:22 -05:00
|
|
|
mkdir -p "$manifestdir/"
|
2025-04-07 15:41:56 -04:00
|
|
|
for image in minimal standard minimal-plus iot; do
|
2025-02-21 13:10:22 -05:00
|
|
|
# Embed the generic defaults
|
|
|
|
|
cp -a $image $manifestdir/
|
2025-06-16 15:35:27 -04:00
|
|
|
# And the top-level Fedora-specific manifests
|
2025-06-17 15:07:23 -04:00
|
|
|
if [ -f $image.hidden.yaml ]; then
|
|
|
|
|
cp -a $image.hidden.yaml $manifestdir/
|
|
|
|
|
else
|
|
|
|
|
cp -a $image.yaml $manifestdir/
|
|
|
|
|
fi
|
2025-06-16 15:35:27 -04:00
|
|
|
# And the legacy `fedora-` prefixed names
|
2025-02-21 13:10:22 -05:00
|
|
|
cp -a fedora-$image.yaml $manifestdir/
|
|
|
|
|
done
|
|
|
|
|
# Set the default
|
|
|
|
|
ln -s fedora-standard.yaml $manifestdir/default.yaml
|
|
|
|
|
# And install dependency manifests
|
|
|
|
|
cp -a fedora-includes $manifestdir
|