Page MenuHomeFreeBSD

nuageinit: Create parent directories in write_files
ClosedPublic

Authored by dtxdf on Tue, Jun 2, 5:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 8, 9:42 PM
Unknown Object (File)
Mon, Jun 8, 9:00 PM
Unknown Object (File)
Thu, Jun 4, 3:38 PM
Unknown Object (File)
Wed, Jun 3, 11:13 PM
Unknown Object (File)
Wed, Jun 3, 9:09 PM
Unknown Object (File)
Wed, Jun 3, 8:39 PM
Unknown Object (File)
Tue, Jun 2, 6:09 PM
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