Chad Smith 736099c6b6 functions: proper cloud-init.service full unit override in etc
System override drop-ins cannot redact dependencies (Before or After) and
thus require a full unit override. Avoid writing the unit file delivered
by cloud-init deb package in /lib/systemd/system/cloud-init.service because
it will generate warnings fron debsums -c about modified files.

The correct place to provide a full unit override is in
/etc/systemd/system/cloud-init.service in order to drop
Before=sysinit.target from the packaged cloud-init.service file.

Note vigilance will be needed across cloud-init SRU boundaries to ensure
we sync any cloud-init.service unit changes that are introduced to
stable releases because livecd-rootfs is overriding the whole file.

LP: #2069391
(cherry picked from commit 97dd81183b3222b05cc53c3637e934fc2c61a5f0)
2025-07-21 16:04:34 +02:00
2009-09-15 13:20:15 +01:00
Description
Languages
Shell 86.8%
Python 11.2%
Perl 2%