forked from pool/cloud-init
Robert Schweikert
315f729f37
+ Support user processes running in coud-init-final to consume a large number of threads. - Modify cloud-init-service.patch (bsc#1055649) + Start after dbus.service, needed by hotnamectl - Modify cloud-init-handle-not-implemented-query.patch + print needs () for Python3 - Add cloud-init-spceandtabs-clean.patch + Fix inconsistent use of spaces and tabs in various files - Modify suseIntegratedHandler.patch + Fix mode setting passed to function for file writing - Set packag up to build with Python 3 for distros later than SLE 12 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=82
59 lines
1.8 KiB
Diff
59 lines
1.8 KiB
Diff
Index: systemd/cloud-init.service
|
|
===================================================================
|
|
--- systemd/cloud-init.service.orig
|
|
+++ systemd/cloud-init.service
|
|
@@ -1,9 +1,19 @@
|
|
[Unit]
|
|
Description=Initial cloud-init job (metadata service crawler)
|
|
-After=cloud-init-local.service networking.service
|
|
-Before=network-online.target sshd.service sshd-keygen.service systemd-user-sessions.service
|
|
-Requires=networking.service
|
|
-Wants=local-fs.target cloud-init-local.service sshd.service sshd-keygen.service
|
|
+DefaultDependencies=no
|
|
+Wants=cloud-init-local.service
|
|
+Wants=local-fs.target
|
|
+Wants=sshd-keygen.service
|
|
+Wants=sshd.service
|
|
+After=cloud-init-local.service
|
|
+After=dbus.service
|
|
+After=wicked.service
|
|
+Requires=wicked.service
|
|
+Before=network-online.target
|
|
+Before=sshd-keygen.service
|
|
+Before=sshd.service
|
|
+Before=systemd-user-sessions.service
|
|
+Conflicts=shutdown.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Index: systemd/cloud-init-local.service
|
|
===================================================================
|
|
--- systemd/cloud-init-local.service.orig
|
|
+++ systemd/cloud-init-local.service
|
|
@@ -4,9 +4,10 @@ DefaultDependencies=no
|
|
Wants=local-fs.target
|
|
Wants=network-pre.target
|
|
After=local-fs.target
|
|
-Conflicts=shutdown.target
|
|
+Before=basic.target
|
|
Before=network-pre.target
|
|
Before=shutdown.target
|
|
+Conflicts=shutdown.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Index: systemd/cloud-final.service
|
|
===================================================================
|
|
--- systemd/cloud-final.service.orig
|
|
+++ systemd/cloud-final.service
|
|
@@ -1,6 +1,8 @@
|
|
[Unit]
|
|
Description=Execute cloud user/final scripts
|
|
-After=network-online.target cloud-config.service rc-local.service multi-user.target
|
|
+After=cloud-config.service
|
|
+After=network-online.target
|
|
+After=rc-local.service
|
|
Before=systemd-logind.service
|
|
Wants=network-online.target cloud-config.service
|
|
|