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:
parent
d6c42ddaeb
commit
205f1ba4f8
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue