Page MenuHomeFreeBSD

nuageinit: Ignore non-existent groups
ClosedPublic

Authored by dtxdf on Sep 25 2025, 12:56 AM.
Tags
None
Referenced Files
F147056137: D52718.id162958.diff
Sat, Mar 7, 11:18 PM
Unknown Object (File)
Wed, Mar 4, 5:50 PM
Unknown Object (File)
Tue, Mar 3, 6:23 PM
Unknown Object (File)
Fri, Feb 27, 8:40 PM
Unknown Object (File)
Fri, Feb 27, 12:29 PM
Unknown Object (File)
Fri, Feb 27, 3:18 AM
Unknown Object (File)
Fri, Feb 27, 12:25 AM
Unknown Object (File)
Tue, Feb 17, 3:07 PM
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.