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
..
2025-02-25 15:32:46 -03:00
2024-11-06 07:33:51 -05:00
2025-02-25 15:32:46 -03:00
2024-02-17 06:35:13 -05:00