Merge ~rbalint/cloud-init:fix-1717477 into cloud-init:master

Proposed by Balint Reczey
Status: Merged
Approved by: Scott Moser
Approved revision: 523da2740785a8f2d8fb0dc7ecf9235675716687
Merged at revision: 523da2740785a8f2d8fb0dc7ecf9235675716687
Proposed branch: ~rbalint/cloud-init:fix-1717477
Merge into: cloud-init:master
Diff against target: 47 lines (+0/-12)
3 files modified
dev/null (+0/-2)
packages/redhat/cloud-init.spec.in (+0/-6)
setup.py (+0/-4)
Reviewer Review Type Date Requested Status
Scott Moser Approve
Review via email: mp+330842@code.launchpad.net

Commit message

Do not provide systemd-fsck drop-in which could cause ordering cycles.

Revert "centos: do not package systemd-fsck drop-in."
Revert "systemd: make systemd-fsck run after cloud-init.service"

The systemd-fsck drop-in caused regressions by introducing ordering
The change reverts the original commit that added systemd-fsck drop-in
and another commit that had removed that from the centos packaging:
    1f5489c258a26f4e26261c40786537951d67df1e
    8a5296c41db45be3a172862f324ad44e732a2250

The result is to no longer provide the systemd-fsck drop-in.

LP: #1717477

To post a comment you must log in.
~rbalint/cloud-init:fix-1717477 updated
523da27... by Balint Reczey

Revert "centos: do not package systemd-fsck drop-in."

This reverts commit 8a5296c41db45be3a172862f324ad44e732a2250.

Revision history for this message
Balint Reczey (rbalint) wrote :

Needs testing

Revision history for this message
Scott Moser (smoser) wrote :

I built a package with this, and then installed it into an artful system.
the installation resulted in
 /lib/systemd/system/systemd-fsck@.service.d/cloud-init.conf
being removed, so that seems right to me.

I've re-written the commit message to a single commit that we can then
cherry pick for the SRU.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/packages/redhat/cloud-init.spec.in b/packages/redhat/cloud-init.spec.in
2index d995b85..6ab0d20 100644
3--- a/packages/redhat/cloud-init.spec.in
4+++ b/packages/redhat/cloud-init.spec.in
5@@ -115,12 +115,6 @@ rm -rf $RPM_BUILD_ROOT%{python_sitelib}/tests
6 mkdir -p $RPM_BUILD_ROOT/%{_sharedstatedir}/cloud
7 mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/%{name}
8
9-# LP: #1691489: Remove systemd-fsck dropin (currently not expected to work)
10-%if "%{init_system}" == "systemd"
11-rm $RPM_BUILD_ROOT/usr/lib/systemd/system/systemd-fsck@.service.d/cloud-init.conf
12-%endif
13-
14-
15 %clean
16 rm -rf $RPM_BUILD_ROOT
17
18diff --git a/setup.py b/setup.py
19index 7662bd8..9199317 100755
20--- a/setup.py
21+++ b/setup.py
22@@ -125,7 +125,6 @@ INITSYS_FILES = {
23 for f in (glob('systemd/*.tmpl') +
24 glob('systemd/*.service') +
25 glob('systemd/*.target')) if is_f(f)],
26- 'systemd.fsck-dropin': ['systemd/systemd-fsck@.service.d/cloud-init.conf'],
27 'systemd.generators': [f for f in glob('systemd/*-generator') if is_f(f)],
28 'upstart': [f for f in glob('upstart/*') if is_f(f)],
29 }
30@@ -135,9 +134,6 @@ INITSYS_ROOTS = {
31 'sysvinit_deb': 'etc/init.d',
32 'sysvinit_openrc': 'etc/init.d',
33 'systemd': pkg_config_read('systemd', 'systemdsystemunitdir'),
34- 'systemd.fsck-dropin': (
35- os.path.sep.join([pkg_config_read('systemd', 'systemdsystemunitdir'),
36- 'systemd-fsck@.service.d'])),
37 'systemd.generators': pkg_config_read('systemd',
38 'systemdsystemgeneratordir'),
39 'upstart': 'etc/init/',
40diff --git a/systemd/systemd-fsck@.service.d/cloud-init.conf b/systemd/systemd-fsck@.service.d/cloud-init.conf
41deleted file mode 100644
42index 0bfa465..0000000
43--- a/systemd/systemd-fsck@.service.d/cloud-init.conf
44+++ /dev/null
45@@ -1,2 +0,0 @@
46-[Unit]
47-After=cloud-init.service

Subscribers

People subscribed via source and target branches