curtin: note the need for --extrausers on snappy.

This commit is contained in:
Mathieu Trudel-Lapierre 2016-07-09 13:07:52 -04:00
parent 6235ae789e
commit 8e6ff11fb7
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ POST_INSTALL = '\n' + "\n".join(POST_INSTALL_LIST) + '\n'
def curtin_configure_user(userinfo, dryrun=False):
usercmds = []
# FIXME: snappy needs --extrausers too; should factor out a way to pass
# additional parameters.
usercmds += ["useradd -m -p {confirm_password} {username}".format(**userinfo)]
if 'ssh_import_id' in userinfo:
target = "/home/{username}/.ssh/authorized_keys".format(**userinfo)