From 6750c1af24dac86f9604a6c488b24327d951ecb8 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 5 Jul 2023 11:00:23 +0900 Subject: [PATCH] unit: also condition out systemd-backlight in initrd Follow-up for 9173d31dfea5c2b05ff08480972c499cb7aac940. The systemd-backlight@.service also save/restore state but the data is in /var/. --- units/systemd-backlight@.service.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/units/systemd-backlight@.service.in b/units/systemd-backlight@.service.in index 4830a6a217..981d0f278e 100644 --- a/units/systemd-backlight@.service.in +++ b/units/systemd-backlight@.service.in @@ -10,6 +10,8 @@ [Unit] Description=Load/Save Screen Backlight Brightness of %i Documentation=man:systemd-backlight@.service(8) +ConditionPathExists=!/etc/initrd-release + DefaultDependencies=no Conflicts=shutdown.target Before=sysinit.target shutdown.target