From: Yu Watanabe Date: Wed, 5 Jul 2023 02:00:23 +0000 (+0900) Subject: unit: also condition out systemd-backlight in initrd X-Git-Tag: v254-rc1~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6750c1af24dac86f9604a6c488b24327d951ecb8;p=thirdparty%2Fsystemd.git 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/. --- diff --git a/units/systemd-backlight@.service.in b/units/systemd-backlight@.service.in index 4830a6a2177..981d0f278ee 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