HomeFreeBSD

release: Create /firstboot in common VM image creation code

Description

release: Create /firstboot in common VM image creation code

Some services, such as growfs, only run upon the first boot of an image.
The first boot is indicated by the presence of the file /firstboot,
which is unlinked after boot.

Individual cloudware types shouldn't be responsible for creating it. Do
so in a centralized place. Aside from simplifying things, this ensures
that we create a metalog entry for the firstboot file.

Reviewed by: cperciva, emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D52450

(cherry picked from commit 1d6b6ea2d0e617d29681da3cf121abec309d272f)

Details

Provenance
markjAuthored on Sep 11 2025, 1:05 PM
cpercivaCommitted on Oct 3 2025, 4:42 PM
Reviewer
cperciva
Differential Revision
D52450: release: Create /firstboot in common VM image code
Parents
rGe9f564a47e93: release: Made it possible to specify more attributes in metalog entries
Branches
Unknown
Tags
Unknown