summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorzhuzaifangxuele <52022596+zhuzaifangxuele@users.noreply.github.com>2021-09-14 02:21:28 +0800
committerGitHub <noreply@github.com>2021-09-13 13:21:28 -0500
commitf4c47e3e25d1fb79e2673e37f8fc67750d025be2 (patch)
treed3fd670589ff11d203afd2973f926cc0bff44120 /systemd
parent2ce857248162957a785af61c135ca8433fdbbcde (diff)
downloadvyos-cloud-init-f4c47e3e25d1fb79e2673e37f8fc67750d025be2.tar.gz
vyos-cloud-init-f4c47e3e25d1fb79e2673e37f8fc67750d025be2.zip
Support openEuler OS (#1012)
openEuler Homepage: https://www.openeuler.org/en/
Diffstat (limited to 'systemd')
-rw-r--r--systemd/cloud-init-generator.tmpl4
-rw-r--r--systemd/cloud-init.service.tmpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/systemd/cloud-init-generator.tmpl b/systemd/cloud-init-generator.tmpl
index 7fe009ec..7d1e7256 100644
--- a/systemd/cloud-init-generator.tmpl
+++ b/systemd/cloud-init-generator.tmpl
@@ -83,8 +83,8 @@ default() {
check_for_datasource() {
local ds_rc=""
-{% if variant in ["almalinux", "centos", "cloudlinux", "eurolinux", "fedora", "rhel",
- "rocky", "virtuozzo"] %}
+{% if variant in ["almalinux", "centos", "cloudlinux", "eurolinux", "fedora",
+ "openEuler", "rhel", "rocky", "virtuozzo"] %}
local dsidentify="/usr/libexec/cloud-init/ds-identify"
{% else %}
local dsidentify="/usr/lib/cloud-init/ds-identify"
diff --git a/systemd/cloud-init.service.tmpl b/systemd/cloud-init.service.tmpl
index 6c3a8f20..de3f3d91 100644
--- a/systemd/cloud-init.service.tmpl
+++ b/systemd/cloud-init.service.tmpl
@@ -12,8 +12,8 @@ After=systemd-networkd-wait-online.service
{% if variant in ["ubuntu", "unknown", "debian"] %}
After=networking.service
{% endif %}
-{% if variant in ["almalinux", "centos", "cloudlinux", "eurolinux", "fedora", "rhel",
- "rocky", "virtuozzo"] %}
+{% if variant in ["almalinux", "centos", "cloudlinux", "eurolinux", "fedora",
+ "openEuler", "rhel", "rocky", "virtuozzo"] %}
After=network.service
After=NetworkManager.service
{% endif %}