Comment 2 for bug 1570997

Revision history for this message
Scott Moser (smoser) wrote :

A recreate for this is as simple as:
$ ud=$(printf '%s\n%s\n' '#!/bin/sh' 'ssh-import-id smoser')
$ lxc launch ubuntu-daily:xenial "--config=user.user-data=$ud"

A work around is to just to set the HOME environment:

$ ud=$(printf '%s\n%s\n' '#!/bin/sh' 'HOME=/root ssh-import-id smoser')