@@ -359,9 +359,33 @@ index 6951a0e3..411065f9 100644
359
359
# Other config here will be given to the distro class and/or path classes
360
360
paths:
361
361
cloud_dir: /var/lib/cloud/
362
+ diff -ruN a/systemd/cloud-init-local.service.tmpl b/systemd/cloud-init-local.service.tmpl
363
+ --- a/systemd/cloud-init-local.service.tmpl 2022-05-18 08:23:24.000000000 -0700
364
+ +++ b/systemd/cloud-init-local.service.tmpl 2022-08-23 16:23:57.854218334 -0700
365
+ @@ -1,9 +1,7 @@
366
+ ## template:jinja
367
+ [Unit]
368
+ Description=Initial cloud-init job (pre-networking)
369
+ - {% if variant in ["ubuntu", "unknown", "debian", "rhel" ] %}
370
+ DefaultDependencies=no
371
+ - {% endif %}
372
+ Wants=network-pre.target
373
+ After=hv_kvp_daemon.service
374
+ After=systemd-remount-fs.service
375
+ @@ -21,10 +19,8 @@
376
+ Before=firewalld.target
377
+ Conflicts=shutdown.target
378
+ {% endif %}
379
+ - {% if variant in ["ubuntu", "unknown", "debian"] %}
380
+ Before=sysinit.target
381
+ Conflicts=shutdown.target
382
+ - {% endif %}
383
+ RequiresMountsFor=/var/lib/cloud
384
+ {% if variant == "rhel" %}
385
+ ConditionPathExists=!/etc/cloud/cloud-init.disabled
362
386
diff -ruN a/systemd/cloud-init.service.tmpl b/systemd/cloud-init.service.tmpl
363
- --- a/systemd/cloud-init.service.tmpl 2022-05-18 08:23:24.000000000 -0700
364
- +++ b/systemd/cloud-init.service.tmpl 2022-08-03 21:51:14.862040213 -0700
387
+ --- a/systemd/cloud-init.service.tmpl 2022-05-18 08:23:24.000000000 -0700
388
+ +++ b/systemd/cloud-init.service.tmpl 2022-08-23 16: 21:56.556071614 -0700
365
389
@@ -1,7 +1,7 @@
366
390
## template:jinja
367
391
[Unit]
@@ -371,16 +395,18 @@ diff -ruN a/systemd/cloud-init.service.tmpl b/systemd/cloud-init.service.tmpl
371
395
DefaultDependencies=no
372
396
{% endif %}
373
397
Wants=cloud-init-local.service
374
- @@ -26,8 +26,8 @@
398
+ @@ -26,11 +26,9 @@
375
399
Before=network-online.target
376
400
Before=sshd-keygen.service
377
401
Before=sshd.service
378
402
- {% if variant in ["ubuntu", "unknown", "debian"] %}
379
403
Before=sysinit.target
380
- + {% if variant in ["ubuntu", "unknown", "debian"] %}
381
404
Before=shutdown.target
382
405
Conflicts=shutdown.target
383
- {% endif %}
406
+ - {% endif %}
407
+ {% if variant in ["suse"] %}
408
+ Before=shutdown.target
409
+ Conflicts=shutdown.target
384
410
diff --git a/templates/hosts.mariner.tmpl b/templates/hosts.mariner.tmpl
385
411
new file mode 100644
386
412
index 00000000..2e956382
@@ -768,3 +794,4 @@ index 176df36b..10e47343 100755
768
794
- -
769
795
2.25.1
770
796
797
+
0 commit comments