So far no luck. I added a After=local-fs.target to the snapd unit file,
but it still appears broken:

[Unit]
Description=Snappy daemon
Requires=snapd.socket
After=local-fs.target

[Service]
# Disabled because it breaks lxd
# (https://bugs.launchpad.net/snapd/+bug/1709536)
#Nice=-5
OOMScoreAdjust=-900
ExecStart=/usr/lib/snapd/snapd
EnvironmentFile=-/etc/environment
Restart=always
Type=notify

[Install]
WantedBy=multi-user.target

ZFS systemd mount scripts have Before=local-fs.target, so that can't be
it:

[Unit]
Description=Mount ZFS filesystems
DefaultDependencies=no
After=systemd-udev-settle.service
After=zfs-import-cache.service
After=zfs-import-scan.service
After=systemd-remount-fs.service
Before=local-fs.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/zfs mount -a
WorkingDirectory=-/sbin/

[Install]
WantedBy=zfs-share.service
WantedBy=zfs.target

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1750059

Title:
  snaps are broken when /var/lib/snapd is a mounted directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1750059/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to