HomeFreeBSD

vmimage.subr: Add missing directories to METALOG

Description

vmimage.subr: Add missing directories to METALOG

Theoretically METALOG should include everything which needs to go
into disk images; unfortunately there are still a few bugs which
are resulting in directories not being listed -- and if METALOG
has files in unrecorded directories, the directories end up being
created with 000 permissions.

Oddly enough, systems where / has 000 permissions are not very
usable.

As a temporary hack, compare the staging tree against METALOG and
add entries for any unrecorded directories. This will hopefully
be reverted before 15.0-RELEASE.

Approved by: re (cperciva)
Reviewed by: bapt, emaste, ivy
Sponsored by: https://www.patreon.com/cperciva
MFC after: 5 minutes
Differential Revision: https://reviews.freebsd.org/D53153

(cherry picked from commit 71b2f9853529b1d1a160eaaa202e93a14f91eed1)
(cherry picked from commit 7ce5d908fd6b51dc89d9b89f4c009e44cb932b55)

Details

Provenance
cpercivaAuthored on Oct 17 2025, 7:01 AM
Reviewer
bapt
Differential Revision
D53153: vmimage.subr: Add missing directories to METALOG
Parents
rGb5d5181d74f0: pkg-stage: Correct /packages permissions
Branches
Unknown
Tags
Unknown