[Bug 2071333] [NEW] netplan.io causes systemctl enable to fail on systems without dbus

Kaarel Pärtel 2071333 at bugs.launchpad.net
Thu Jun 27 09:21:08 UTC 2024


Public bug reported:

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)

** Affects: netplan.io (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Tar file containing two Dockerfiles that demonstrate the bug."
   https://bugs.launchpad.net/bugs/2071333/+attachment/5792757/+files/Dockerfiles.tar

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2071333

Title:
  netplan.io causes systemctl enable to fail on systems without dbus

Status in netplan.io package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2071333/+subscriptions




More information about the foundations-bugs mailing list