snapd installs files in /etc which break bzr (via etckeeper)

Bug #1575129 reported by James Troup
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Triaged
High
Unassigned

Bug Description

I use etckeeper with bzr. After installing a snap, its apt hook
started to fail with the following:

bzr: ERROR: bzrlib.errors.InvalidEntryName: Invalid entry name: snap-ubuntu\x2dcore-109.mount

And indeed:

root@ornery:/etc/systemd/system# ls -l snap-*
-rw-r--r-- 1 root root 155 Apr 25 19:10 snap-notes-1.mount
-rw-r--r-- 1 root root 177 Apr 25 19:10 snap-ubuntu\x2dcore-109.mount
root@ornery:/etc/systemd/system#

Revision history for this message
John Lenton (chipaca) wrote :

Unfortunately AFAIK that name is mandated by systemd for a mount unit that mounts /snap/ubuntu-core/109.2

      Mount units must be named after the mount point directories they control. Example: the mount point
       /home/lennart must be configured in a unit file home-lennart.mount. For details about the escaping
       logic used to convert a file system path to a unit name, see systemd.unit(5). Note that mount units
       cannot be templated.

Revision history for this message
John Lenton (chipaca) wrote :

One thing we *could* do is create them every boot, under /run/systemd/system, but that's part of a bigger piece of work

Michael Vogt (mvo)
Changed in snapd (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Jacek Nykis (jacekn) wrote :

It may be something that's best fixed in bzr, see LP1035045

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.