]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
unit: also condition out systemd-backlight in initrd
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Jul 2023 02:00:23 +0000 (11:00 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 5 Jul 2023 07:01:27 +0000 (09:01 +0200)
Follow-up for 9173d31dfea5c2b05ff08480972c499cb7aac940.

The systemd-backlight@.service also save/restore state but the data
is in /var/.

units/systemd-backlight@.service.in

index 4830a6a21774ec35d4b47c4f43f72705ec4b124d..981d0f278ee33919cc76fb4431f22e483dadd251 100644 (file)
@@ -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