We don't currently want the minimal-plus target to be user-facing. It's intended only for other Fedora variants. Let's support "hidden" manifests by having their names end in `.hidden.yaml`. Then, make `minimal-plus` hidden. I considered instead having them start with `.` to match well-established semantics, but I don't like either that this hides them from an `ls` in the git repo (or even with `-a`, puts them higher up whereas I want it to be close to `minimal.yaml`). I also considered leveraging the existing symlink hiding semantics, but it also felt awkward to rename a file and add a symlink to it just for the purpose of hiding it.
22 lines
756 B
Bash
Executable file
22 lines
756 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
|
|
# Set the default
|
|
ln -s fedora-standard.yaml $manifestdir/default.yaml
|
|
# And install dependency manifests
|
|
cp -a fedora-includes $manifestdir
|