Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable installation of snaps in to images that are built #30

Open
OddBloke opened this issue Feb 3, 2017 · 3 comments
Open

Enable installation of snaps in to images that are built #30

OddBloke opened this issue Feb 3, 2017 · 3 comments

Comments

@OddBloke
Copy link
Owner

OddBloke commented Feb 3, 2017

No description provided.

@vorlonofportland
Copy link

$ snap download --help
Usage:
snap [OPTIONS] download [download-OPTIONS]

The download command downloads the given snap and its supporting assertions
to the current directory under .snap and .assert file extensions, respectively.

[...]
$

We can use this command to download snaps as part of the image build, this should not be dependent on a running snapd. I believe we would still need livecd-rootfs to move the downloaded files into the correct directories in the image where snapd would pick them up after boot.

@OddBloke
Copy link
Owner Author

OddBloke commented Feb 3, 2017

I've confirmed that snap download works fine in a customisation script.

@OddBloke
Copy link
Owner Author

OddBloke commented Feb 3, 2017

(As expected, snap install doesn't work:

+ snap install hello-world
2017/02/03 16:57:19.922635 main.go:220: WARNING: cannot create syslog logger
error: cannot communicate with server: Post http://localhost/v2/snaps/hello-world: dial unix /run/snapd-snap.socket: connect: no such file or directory

)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants