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)
Sun, Nov 16, 1:56 PM
Unknown Object (File)
Sat, Nov 15, 8:21 PM
Unknown Object (File)
Nov 2 2025, 8:42 PM
Unknown Object (File)
Nov 1 2025, 5:44 PM
Unknown Object (File)
Nov 1 2025, 5:31 AM
Unknown Object (File)
Oct 29 2025, 6:30 AM
Unknown Object (File)
Oct 29 2025, 6:20 AM
Unknown Object (File)
Oct 28 2025, 8:54 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