summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorAndrew Lukoshko <andrew.lukoshko@gmail.com>2021-05-08 00:31:14 +0300
committerGitHub <noreply@github.com>2021-05-07 16:31:14 -0500
commit8cf40a73646a9448746fc4043c6410ae92172e7c (patch)
tree1f807d522ce7ebe84e295697310a63cb86651498 /systemd
parent13877549527812959f59e4add685bc42d350edd8 (diff)
downloadvyos-cloud-init-8cf40a73646a9448746fc4043c6410ae92172e7c.tar.gz
vyos-cloud-init-8cf40a73646a9448746fc4043c6410ae92172e7c.zip
Add AlmaLinux OS support (#872)
AlmaLinux OS is RHEL-compatible so all the changes needed are trivial.
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/cloud-init-generator.tmpl2
-rw-r--r--systemd/cloud-init.service.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/systemd/cloud-init-generator.tmpl b/systemd/cloud-init-generator.tmpl
index 0773356b..9b103ef9 100755
--- a/systemd/cloud-init-generator.tmpl
+++ b/systemd/cloud-init-generator.tmpl
@@ -83,7 +83,7 @@ default() {
check_for_datasource() {
local ds_rc=""
-{% if variant in ["rhel", "fedora", "centos"] %}
+{% if variant in ["almalinux", "rhel", "fedora", "centos"] %}
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 f140344d..a5c51277 100644
--- a/systemd/cloud-init.service.tmpl
+++ b/systemd/cloud-init.service.tmpl
@@ -10,7 +10,7 @@ After=systemd-networkd-wait-online.service
{% if variant in ["ubuntu", "unknown", "debian"] %}
After=networking.service
{% endif %}
-{% if variant in ["centos", "fedora", "rhel"] %}
+{% if variant in ["almalinux", "centos", "fedora", "rhel"] %}
After=network.service
After=NetworkManager.service
{% endif %}