Page MenuHomeFreeBSD

vmimage.subr: metalog_add generated databases
ClosedPublic

Authored by cperciva on Oct 10 2025, 10:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 16, 10:51 AM
Unknown Object (File)
Mon, Apr 13, 6:43 AM
Unknown Object (File)
Fri, Apr 10, 1:04 PM
Unknown Object (File)
Tue, Apr 7, 9:18 AM
Unknown Object (File)
Tue, Mar 31, 7:24 AM
Unknown Object (File)
Fri, Mar 27, 4:56 AM
Unknown Object (File)
Mar 17 2026, 2:02 AM
Unknown Object (File)
Mar 1 2026, 12:43 AM

Details

Summary

The files /etc/login.conf.db, /etc/passwd, /etc/pwd.db, /etc/spwd.db,
and /var/db/services.db are generated at install time. When VM images
are built using installworld, there is Makefile code which emits the
necessary METALOG lines; but the pkgbase triggers do not do this. This
resulted in VM images which lacked these essential database files.

VM images are currently the only place where this matters, since this
issue is specific to non-root image builds uusing pkgbase. (In some
point in the future we will start building release ISO iamges from
pkgbase, at which point it will be a problem there as well.)

The long-term solution for this is probably to teach the relevant
database-creating tools to emit METALOG lines; but for now, just log
the necessary files from vmimage.subr.

MFC after: 5 minutes
Sponsored by: https://www.patreon.com/cperciva

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable