How to provide new snaps by default?

Asked by Damien Lecan

Hello,

I would like to provide new snaps in my custom Ubuntu image, but when I try to install one snap, snap daemon tells me it is already installed.
It is right, as it is already installed but ... on the host!

How to install new snap in chroot context?

Thank you

Question information

Language:
English Edit question
Status:
Expired
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

Here is an interesting discussion about this issue:

https://bugs.launchpad.net/snappy/+bug/1609903

They indicate that snaps can be "seeded" to install on first boot.

  1. Add seed.yaml
  2. Put your snaps into seed.yaml
  3. Put the needed assertions into seed/assertions

The thread above claims that on first boot snapd will install the snaps.

I'm not quite sure how this works, so I will need to experiment with it.

In Cubic, all preseed files are placed in a "/preseed" directory.
However, it looks like the snap "seed" file should be located inside the customized file system at: /var/lib/snapd/seed/seed.yaml

Here are some other links that may provide some insight...
https://ubuntuforums.org/showthread.php?t=2397851
https://ubuntuforums.org/showthread.php?t=2393347&page=3

Revision history for this message
Damien Lecan (dlecan) said :
#2

Thank you for these links, I will try them.
I'll go back with the results of my tests.

Thank you

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.