build: annotate repository info when bootstrapping images

This brings us closer to safely use CONSERVATIVE_UPGRADE eventually,
but for now it seems like the annotation doesn't actually work as
double checking for annotated tags shows no tag at all.  Hmmmm.

Suggested by: pdf on the forums
This commit is contained in:
Franco Fichtner 2015-02-19 08:38:53 +01:00
parent d6c42ddaeb
commit 205f1ba4f8
1 changed files with 8 additions and 0 deletions

View File

@ -143,6 +143,14 @@ setup_packages()
# must fail if packages aren't there
pkg -c ${BASEDIR} add ${PACKAGESDIR}/${ARCH}/${PKG}-*.txz
done
# collect all installed packages
PKGLIST="$(pkg -c ${BASEDIR} query %n)"
for PKG in ${PKGLIST}; do
# add, unlike install, is not aware of repositories :(
pkg -c ${BASEDIR} annotate -A ${PKG} repository OPNsense
done
fi
# keep the directory!