Try to read remote pwd from stdin as a file

In case someone does 'echo foo | lxc remote add' (as we do in the tests), if we
get an ioctl error from trying to treat stdin as a tty, we should try to read
it as a file.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
allow lxd to start w/o subuids

Per specs/userns-idmap.md, we should not fail to boot if there aren't enough
(or any) subuids, we should just not allow any operations that require
subuids.

This also re-enables the remote test.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #56 from tych0/start-with-no-subuids

Start with no subuids
rest: enforce trust globally

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Create is an Async operation

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Add operations list

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #59 from tych0/restificate

Restificate
make check: spit out the go fmt delta to help debug failures

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Fix a typo

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Merge pull request #60 from hallyn/check

make check: spit out the go fmt delta to help debug failures
Merge pull request #61 from tych0/typo

Fix a typo
travis: Print what commit isn't signed-off

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Merge pull request #63 from stgraber/master

travis: Print what commit isn't signed-off
testsuite: Improve reliability

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Merge pull request #65 from stgraber/master

testsuite: Improve reliability
testsuite: Fix some regressions

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Merge pull request #66 from stgraber/master

testsuite: Fix some regressions
remote add: present server certificate to user

The client does not yet store the certificate for later
verification on all connects.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
travis: require building with golang 1.3

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
have client store and verify server certificates

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>