canonical / core18

The core18 base snap
14 stars 26 forks source link

hooks: mkdir /var/cups to avoid writable mimic creation for snaps using cups #187

Closed anonymouse64 closed 2 years ago

anonymouse64 commented 2 years ago

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.

Note that this will result in review-tools complaining when this is merged and a new core18 is uploaded since a new directory is being added to the base snap, but this is okay.

anonymouse64 commented 2 years ago

cc @tillkamppeter