curtin: note the need for --extrausers on snappy.
This commit is contained in:
parent
6235ae789e
commit
8e6ff11fb7
|
@ -92,6 +92,8 @@ POST_INSTALL = '\n' + "\n".join(POST_INSTALL_LIST) + '\n'
|
||||||
|
|
||||||
def curtin_configure_user(userinfo, dryrun=False):
|
def curtin_configure_user(userinfo, dryrun=False):
|
||||||
usercmds = []
|
usercmds = []
|
||||||
|
# FIXME: snappy needs --extrausers too; should factor out a way to pass
|
||||||
|
# additional parameters.
|
||||||
usercmds += ["useradd -m -p {confirm_password} {username}".format(**userinfo)]
|
usercmds += ["useradd -m -p {confirm_password} {username}".format(**userinfo)]
|
||||||
if 'ssh_import_id' in userinfo:
|
if 'ssh_import_id' in userinfo:
|
||||||
target = "/home/{username}/.ssh/authorized_keys".format(**userinfo)
|
target = "/home/{username}/.ssh/authorized_keys".format(**userinfo)
|
||||||
|
|
Loading…
Reference in New Issue