HomeFreeBSD

vmimage.subr: Log pkg/local.sqlite if pkgbase

Description

vmimage.subr: Log pkg/local.sqlite if pkgbase

We were doing this in vm_extra_install_packages but VM images without
any extra packages installed would not get this installed. This
results in a pkgbase system which thinks it doesn't have any packages
installed (even though all the files are right there).

Add a "metalog_add_data ./var/db/pkg/local.sqlite" call to the pkgbase
install code path, and make the call from vm_extra_install_packages
conditional on !PKGBASE.

Reported by: Michael Dexter
MFC after: immediately (needed for 15.0-RC1)

Details

Provenance
cpercivaAuthored on Sat, Nov 15, 9:29 PM
Parents
rG66f2f1c83247: pf: handle divert packets
Branches
Unknown
Tags
Unknown