netplan.io causes systemctl enable to fail on systems without dbus
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I am using Docker with FROM ubuntu:22.04 to build a root filesystem that gets exported into an embedded system. This also includes running commands like "systemctl enable ssh" to enable systemd services.
It seems that the recent security patch to netplan.io somehow causes "systemctl enable" to fail.
From what I can gather this seems to come down to the fact that there is no dbus running.
I have included two Dockerfiles that represent this issue. These can be built using "docker build -f Dockerfile-good ." and "docker build -f Dockerfile-bad ." The only difference between these is that the bad Dockerfile also installs netplan.io
Expected behaviour:
manages to sucessfully enable ssh (Dockerfile-good)
Actual behaviour:
does not manage to enable ssh and exits with an error (Dockerfile-bad)
Related branches
- git-ubuntu import: Pending requested
-
Diff: 34 lines (+13/-1)2 files modifieddebian/changelog (+8/-0)
debian/netplan.io.postinst (+5/-1)
- git-ubuntu import: Pending requested
-
Diff: 34 lines (+13/-1)2 files modifieddebian/changelog (+8/-0)
debian/netplan-generator.postinst (+5/-1)
- git-ubuntu import: Pending requested
-
Diff: 34 lines (+16/-1)2 files modifieddebian/changelog (+7/-0)
debian/netplan-generator.postinst (+9/-1)
- git-ubuntu import: Pending requested
-
Diff: 34 lines (+13/-1)2 files modifieddebian/changelog (+8/-0)
debian/netplan.io.postinst (+5/-1)
From my testing this also occurs when using 20.04 but this does NOT occur on 24.04