Just noticed what might be a regression from this fix. `/usr/local/sbin:/usr/local/bin` are now missing from unit on newest ubuntu bionic ami (us-east-1: ami-012fd5eb46f56731f)
ubuntu@ubuntu:~$ dpkg-query -W systemd systemd 237-3ubuntu10.11 ubuntu@ubuntu:~$ sudo systemd-run /usr/bin/env Running as unit: run-r6c6668bf9774455dbb628d2d79de5949.service ubuntu@ubuntu:~$ journalctl -e | grep PATH= Feb 01 20:46:24 ubuntu env[6051]: PATH=/sbin:/usr/sbin:/bin:/usr/bin:/snap/bin The prior ami (us-east-1: ami-0b86cfbff176b7d3a) doesn't have this issue. So I checked for differences. I noticed that if I remove `/usr/lib/systemd/system-environment-generators/snapd-env-generator` and reboot then I get better output: ubuntu@ubuntu:~$ sudo systemd-run /usr/bin/env Running as unit: run-r6c6668bf9774455dbb628d2d79de5949.service ubuntu@ubuntu:~$ journalctl -e | grep PATH= Feb 01 20:51:44 ubuntu env[3337]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1771858 Title: /snap/bin not in default PATH for units, snapd should ship system- environment-generators to inject /snap/bin into $PATH To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1771858/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs