#!/bin/bash set -xeuo pipefail # This script copies the manifests from the current directory # into their installed location. manifestdir=${1:-/usr/share/doc/debian-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 Debian-specific manifests if [ -f $image.hidden.yaml ]; then cp -a $image.hidden.yaml $manifestdir/ else cp -a $image.yaml $manifestdir/ fi # And the Debian version-specific names cp -a debian-$image.yaml $manifestdir/ done # Copy version-specific manifests (debian-13.yaml, debian-14.yaml, debian-00.yaml) cp -a debian-13.yaml $manifestdir/ 2>/dev/null || echo "debian-13.yaml not found" cp -a debian-14.yaml $manifestdir/ 2>/dev/null || echo "debian-14.yaml not found" cp -a debian-00.yaml $manifestdir/ 2>/dev/null || echo "debian-00.yaml not found" # Set the default ln -s debian-13.yaml $manifestdir/default.yaml # And install dependency manifests cp -a debian-includes $manifestdir