Recent changes in xenial livebuild include the fuse package when
creating the chroot - this was not until very recently. When it gets
removed by hook 600-no-debian.binary, the initrd gets re-built and the
symlink created by 25-create-generic-initrd.chroot is replaced by a
real file. Put things back to normal by making it point back to the
initrd generated by the latter.
With the introduction of https://github.com/snapcore/snapd/pull/11600
now the `fuse` package is installed on `core`. However we do not
want this. This commit forcefully removes it if it gets installed.
hooks: mkdir /var/cups to avoid writable mimic creation for snaps using cups
Snaps using the cups interface with the cups snap as of snapd 2.55 will create
a bind mount of /run/cups -> /var/cups, which since /var/cups does not exist
will trigger the writable mimic code to create a writable mimic on /var. This
results in a fair amount of extra bind mounts for every directory in /var, so
creating this directory empty in the base snap ensures that no writable mimic
need be created.
The /usr/lib/snapd/info now contains more than just the version
number. This leads to a version number in the snap that contains
a \n which is of course illegal.
This commit fixes this by adding a proper grep around the version
number.