Snapd on clearlinux


#1

I’ve built snapd on clearlinux, and I was having trouble with an error:

cannot locate the core snap: No such file or directory

I googled for a few hours and found someone with a similar problem that had an unknown OS in their /etc/os-release so I changed my os-release id from clear-linux-os to archlinux and rebooted.

Now everything works fine.

Any suggestions on a better way to fix this?


#2

For reference, the contents of os-release:

NAME="Clear Linux OS"
VERSION=1
ID=clear-linux-os
ID_LIKE=clear-linux-os
VERSION_ID=30110
PRETTY_NAME="Clear Linux OS"
ANSI_COLOR="1;35"
HOME_URL="https://clearlinux.org"
SUPPORT_URL="https://clearlinux.org"
BUG_REPORT_URL="mailto:dev@lists.clearlinux.org"
PRIVACY_POLICY_URL="http://www.intel.com/privacy"

#3

Hey

Could you please share the build-depends? I was trying to do this a while ago but got stuck getting the right autotools packages installed.


#4

To build snapd on clear linux I had to add the bundles: go-basic devpkg-libseccomp kvm-host-dev


#5

also, be careful messing with your os-release file. make a backup if you’re going to change it, as it breaks swupd