[Bug 1750059] Re: snaps are broken when /var/lib/snapd is a mounted directory
Could you run «systemd-analyze plot > /tmp/startup.svg» and attach the resulting /tmp/startup.svg? -- 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
[Bug 1750059] Re: snaps are broken when /var/lib/snapd is a mounted directory
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
[Bug 1750059] Re: snaps are broken when /var/lib/snapd is a mounted directory
I'll see if I have that available. ZFS scripts might do things a bit differently, I know there are a few outstanding actions wrt. systemd mount compatibility ("native generators"). -- 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
[Bug 1750059] Re: snaps are broken when /var/lib/snapd is a mounted directory
Having snapd have an After= on the .mount unit that mounts /var/lib/snapd should be enough? I think. I haven't tested this (obviously). -- 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
[Bug 1750059] Re: snaps are broken when /var/lib/snapd is a mounted directory
I assume it has to do something with the mount times as well. It's stock/default behaviour. I see no direct link between snapd and zfs looking at the unit files. Both are wanted by the multi-user target but that's about it. I have created a local copy (in /etc/systemd/system) of the snapd service, and made it dependent on zfs-mount.service and zfs- share.service, without success. However, I am unfortunately not a systemd guru by far... If you could point out a simple directive e.g. to make snapd wait 30 seconds before starting I think we can pin this down fast. -- 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
[Bug 1750059] Re: snaps are broken when /var/lib/snapd is a mounted directory
how is the mounting of /var/lib/snapd ordered in relation to starting of snapd? -- 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
[Bug 1750059] Re: snaps are broken when /var/lib/snapd is a mounted directory
** Tags added: amd64 artful snapd ubuntu-17.10 -- 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