Skip to content

snapd-june-2025

Choose a tag to compare

@ader1990 ader1990 released this 05 Jun 05:45
· 10 commits to main since this release

Run snaps on Flatcar.
Tested snap: hello-world.
Needs selinux disabled.

This is a proof of concept, and not a production image. Use it at your own risk.

Supporting scripts:

# set selinux to disabled in /etc/selinux/config
sed -i "s/permissive/disabled/g" /etc/selinux/config
reboot

systemctl disable docker
systemctl disable containerd
systemctl stop containerd
systemctl stop docker
mv  /etc/extensions/containerd-flatcar.raw  .
mv  /etc/extensions/docker-flatcar.raw .
systemd-sysext refresh
systemd-sysext list
rm -rf /run/containerd

systemctl enable snapd.socket
systemctl start snapd.socket
sleep 30
snap install k8s --classic --channel latest/edge
sleep 30
k8s bootstrap

journalctl -xeu snap* -f
journalctl -xeu snap.k8s.* -f