Hi,
I’ve been working on updating the version of snapd in Debian (because of the stretch freeze it is currently the rather out-of-date 2.21). I have updating packaging in git https://anonscm.debian.org/git/collab-maint/snapd.git/log/?h=debian-2.27 (source package and build logs also in http://people.canonical.com/~mwh/snapd-for-debian/).
The package builds but I haven’t tested that they in fact work yet.
I also have a feeling that the package includes various binaries and systemd units that only make sense for an all-snaps system and so should be excluded. In particular I think I should exclude these files:
./usr/lib/snapd/snap-repair
./usr/lib/snapd/system-shutdown
./lib/systemd/system/snapd.autoimport.service
./lib/systemd/system/snap-repair.service
./lib/systemd/system/snap-repair.timer
./lib/systemd/system/snapd.system-shutdown.service
and maybe the udev rules. Can someone look through the file list (in the build log, or at http://paste.ubuntu.com/25287571/) and tell me if there is anything else to leave out?
Cheers,
mwh
1 Like
You should take a look at my packaging spec for snapd for Fedora, which contains instructions on what I stripped that was Ubuntu Core specific, including a comprehensive file list.
That should be a helpful aid for what you’re trying to accomplish.
I agree with @Conan_Kudo – my quick look yields the following list of files to remove from all classic distributions:
-rw-r--r-- root/root 193 2017-08-10 21:03 ./lib/systemd/system/snap-repair.service
-rw-r--r-- root/root 221 2017-08-10 21:03 ./lib/systemd/system/snap-repair.timer
-rw-r--r-- root/root 192 2017-08-10 21:03 ./lib/systemd/system/snapd.autoimport.service
-rw-r--r-- root/root 368 2017-08-10 21:03 ./lib/systemd/system/snapd.core-fixup.service
-rw-r--r-- root/root 474 2017-08-10 21:03 ./lib/systemd/system/snapd.system-shutdown.service
-rw-r--r-- root/root 157 2017-08-10 21:03 ./lib/udev/rules.d/66-snapd-autoimport.rules
-rwxr-xr-x root/root 2249136 2017-08-10 21:03 ./usr/lib/snapd/snap-repair
-rwxr-xr-x root/root 2273 2017-08-10 21:03 ./usr/lib/snapd/snapd.core-fixup.sh
-rwxr-xr-x root/root 750616 2017-08-10 21:03 ./usr/lib/snapd/system-shutdown
In addition I think we can finally put this to rest:
lrwxrwxrwx root/root 0 2017-08-10 21:03 ./usr/bin/ubuntu-core-launcher -> ../lib/snapd/snap-confine
Thanks for that, I’ve uploaded 2.27.1-1 now. There are couple more bugs it would be good to fix (like not breaking totally if apparmor is enabled!) and I guess 2.27.2 soon.
1 Like