Skip to content

Commit

Permalink
fix(hotplugd.socket): remove basic.target as dependency
Browse files Browse the repository at this point in the history
In 62ace19 we moved cloud-init-hotplugd.socket earlier in boot,
after cloud-config.target. But we didn't remove the dependencies added
by default and this might conflict with other units producing
non-solvable ordering cycles, see #2081124.

Remove the default dependency on basic.target added by systemd.

LP: #2081124
  • Loading branch information
aciba90 committed Sep 20, 2024
1 parent c62d7f2 commit 984af52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions systemd/cloud-init-hotplugd.socket
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# Known bug with an enforcing SELinux policy: LP: #1936229
[Unit]
Description=cloud-init hotplug hook socket
DefaultDependencies=no
Before=shutdown.target
Conflicts=shutdown.target
After=cloud-config.target
ConditionPathExists=!/etc/cloud/cloud-init.disabled
ConditionKernelCommandLine=!cloud-init=disabled
Expand Down

0 comments on commit 984af52

Please sign in to comment.