[Bug 1791691] Re: PATH broken in systemd units
John Chittum
1791691 at bugs.launchpad.net
Wed Mar 15 19:44:03 UTC 2023
** Changed in: cloud-images
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1791691
Title:
PATH broken in systemd units
Status in cloud-images:
Fix Released
Status in initramfs-tools package in Ubuntu:
New
Status in snapd package in Ubuntu:
Fix Released
Status in initramfs-tools source package in Bionic:
New
Status in snapd source package in Bionic:
In Progress
Status in initramfs-tools source package in Cosmic:
New
Status in snapd source package in Cosmic:
Fix Released
Bug description:
systemd units have broken PATH in recent cloud images.
The PATH set for them is
PATH=:/snap/bin.
Previously value is
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# cat /etc/cloud/build.info
build_name: server
serial: 20180906
Booted in lxc that fails like:
# lxc launch ubuntu-daily:cosmic c3
# lxc exec c3 cat /run/cloud-init/result.json
{
"v1": {
"datasource": null,
"errors": [
"Unexpected error while running command.\nCommand: ['netplan', 'generate']\nExit code: -\nReason: [Errno 2] No such file or directory: b'netplan': b'netplan'\nStdout: -\nStderr: -",
"Unexpected error while running command.\nCommand: ['netplan', 'generate']\nExit code: -\nReason: [Errno 2] No such file or directory: b'netplan': b'netplan'\nStdout: -\nStderr: -",
"('ssh-authkey-fingerprints', KeyError('getpwnam(): name not found: ubuntu',))"
]
}
}
Related bugs:
* bug 1771382: ds-identify: does not have expected PATH.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1791691/+subscriptions
More information about the foundations-bugs
mailing list