Page MenuHomeFreeBSD

vmimage.subr: metalog_add generated databases
ClosedPublic

Authored by cperciva on Fri, Oct 10, 10:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 29, 6:30 AM
Unknown Object (File)
Wed, Oct 29, 6:20 AM
Unknown Object (File)
Tue, Oct 28, 8:54 AM
Unknown Object (File)
Sun, Oct 26, 4:26 AM
Unknown Object (File)
Sat, Oct 25, 12:37 PM
Unknown Object (File)
Sat, Oct 25, 9:33 AM
Unknown Object (File)
Tue, Oct 21, 10:36 PM
Unknown Object (File)
Sat, Oct 18, 1:46 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