Page MenuHomeFreeBSD

nuageinit: Create parent directories in write_files
ClosedPublic

Authored by dtxdf on Jun 2 2026, 5:42 PM.
Tags
None
Referenced Files
F163680041: D57395.id.diff
Sat, Jul 25, 10:12 AM
Unknown Object (File)
Fri, Jul 24, 2:58 PM
Unknown Object (File)
Thu, Jul 23, 6:59 AM
Unknown Object (File)
Sat, Jul 18, 6:06 AM
Unknown Object (File)
Wed, Jul 15, 7:24 AM
Unknown Object (File)
Wed, Jul 15, 7:24 AM
Unknown Object (File)
Tue, Jul 7, 2:49 AM
Unknown Object (File)
Mon, Jul 6, 8:16 AM
Subscribers

Details

Summary

Currently, write_files does not create parent directories, and runcmd cannot be used here, since those scripts run after the files have been written. The only solution is to create the files in an existing directory, such as /root or /tmp, and then move those files using runcmd, but this is cumbersome when there are many files, even if they are small.

With this change, nuageinit now creates the parent directories for each file using the path field, which mimics the same behavior as in cloud-init.

Permissions and ownership can also be configured using runcmd.

Diff Detail

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