netplan.io postinst script creates entries in /run/systemd/system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
The bug affects version 0.106.1-
netplan.io postinst script runs /usr/libexec/
```
# ls -R /run/systemd/system
/run/systemd/
netplan-
/run/systemd/
netplan-
```
The problem is that netplan creates those files even on a system that is not booted, such as in a chroot when building a new OS with the netplan.io package. The immediate impact is that lots of other programs / scripts, check for the existence of /run/systemd/system to determine if systemd is running, and thus if it does exist then they attempt to run systemd commands.
In some cases this causes failures, which fail the entire build.
The right behaviour for netplan.io's generate command should be to check for the existence of directory /run/systemd/system before creating anything in there.
Hi, thanks for your bug report.
We are already of this issue and working on a fix.
Please refer to this bug https:/ /bugs.launchpad .net/ubuntu/ +source/ netplan. io/+bug/ 2071333