Page MenuHomeFreeBSD

nuageinit: Ignore non-existent groups
ClosedPublic

Authored by dtxdf on Sep 25 2025, 12:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 4, 10:08 PM
Unknown Object (File)
Tue, Nov 4, 10:49 AM
Unknown Object (File)
Sun, Nov 2, 6:10 AM
Unknown Object (File)
Tue, Oct 28, 10:11 AM
Unknown Object (File)
Tue, Oct 28, 9:25 AM
Unknown Object (File)
Tue, Oct 28, 9:25 AM
Unknown Object (File)
Tue, Oct 28, 9:22 AM
Unknown Object (File)
Sat, Oct 25, 5:30 AM
Subscribers

Details

Summary

In cloud-init, when a group specified in the users.{index}.groups parameter does not exist, it is ignored, but the user is created anyway. In the case of nuageinit, it exits with an exception, since pw(8) expects each group to exist.

Diff Detail

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

Event Timeline

bapt added inline comments.
libexec/nuageinit/nuage.lua
219

Just a comment here would probably help anyone reading this part of the code in a few years.

This revision is now accepted and ready to land.Sep 25 2025, 6:46 AM

Committed and comment already added. Thanks!

This revision was automatically updated to reflect the committed changes.