From 4841543f39e0d25344889caa814865146856a10f Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Fri, 19 Jul 2019 08:38:18 +0000 Subject: [PATCH] systemd: unify provider overriding via env This unifies all non-initramfs units so that the provider flag can be always overridden via `${AFTERBURN_OPT_PROVIDER}`. --- systemd/afterburn-checkin.service | 3 ++- systemd/afterburn-firstboot-checkin.service | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/systemd/afterburn-checkin.service b/systemd/afterburn-checkin.service index a5b111a5..a2ce101e 100644 --- a/systemd/afterburn-checkin.service +++ b/systemd/afterburn-checkin.service @@ -4,7 +4,8 @@ ConditionKernelCommandLine=|ignition.platform.id=azure After=boot-complete.target [Service] -ExecStart=/usr/bin/afterburn --cmdline --check-in +Environment=AFTERBURN_OPT_PROVIDER=--cmdline +ExecStart=/usr/bin/afterburn ${AFTERBURN_OPT_PROVIDER} --check-in Type=oneshot RemainAfterExit=yes diff --git a/systemd/afterburn-firstboot-checkin.service b/systemd/afterburn-firstboot-checkin.service index a2b616e3..6b1ab5d0 100644 --- a/systemd/afterburn-firstboot-checkin.service +++ b/systemd/afterburn-firstboot-checkin.service @@ -5,7 +5,8 @@ ConditionFirstBoot=yes After=boot-complete.target [Service] -ExecStart=/usr/bin/afterburn --cmdline --check-in +Environment=AFTERBURN_OPT_PROVIDER=--cmdline +ExecStart=/usr/bin/afterburn ${AFTERBURN_OPT_PROVIDER} --check-in Type=oneshot RemainAfterExit=yes