HomeFreeBSD

nuageinit: only create the default user when needed

Description

nuageinit: only create the default user when needed

The "default" user should only be created when:

  • the users key is missing
  • or the default string is present in the users list

Since the public_keys is extracted from the meta-data, this patch has
to slightly adjust the way they are loaded.
The change simplify the logic around the default user SSH key injection.
Both ssh_authorized_keys and public_keys are handled at the same time.

MFC After: 1 week
Signed-off-by: Gonéri Le Bouder <goneri@lebouder.net>
Pull Request: https://github.com/freebsd/freebsd-src/pull/1952

Details

Provenance
Gonéri Le Bouder <goneri@lebouder.net>Authored on Jan 6 2026, 5:18 PM
baptCommitted on Jan 7 2026, 12:29 PM
Parents
rGc2b407244f3a: mrsas.4: Fix devid hex style
Branches
Unknown
Tags
Unknown