What does "initialising device" actually do?

Can someone please explain the process of running snapd for the first time?

I’ve searched around but can’t find exact details.

I need to find out what exactly is going on so that I can fix/avoid issues in the future.

One would expect that the purging of all files from a system would result in the same state as a clean, new installation, but apparently this is not the case. Without further details I will never know what to do when serious problems occur.

The process generates the device keys for encrypting requests to the store and then proceeeds to request a serial assertion. The serial isn’t really required for operation on a classical system (Ubuntu, Debian, Fedora etc.), though it is needed on Ubuntu Core where if using a brand store you’d normally have a tight control over your devices.

1 Like