sbomnix: 1.7.0 -> 1.7.1
[NixPkgs.git] / pkgs / os-specific / linux / systemd / 0011-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch
blob733e042ec0ddb3290e3c61d1de40f261523107ad
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Nikolay Amiantov <ab@fmap.me>
3 Date: Thu, 25 Jul 2019 20:46:58 +0300
4 Subject: [PATCH] systemd-sleep: execute scripts in /etc/systemd/system-sleep
6 This is needed for NixOS to use such scripts as systemd directory is immutable.
7 ---
8 src/sleep/sleep.c | 1 +
9 1 file changed, 1 insertion(+)
11 diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
12 index c96207428d..1e95eec7f1 100644
13 --- a/src/sleep/sleep.c
14 +++ b/src/sleep/sleep.c
15 @@ -217,6 +217,7 @@ static int execute(
17 static const char* const dirs[] = {
18 SYSTEM_SLEEP_PATH,
19 + "/etc/systemd/system-sleep",
20 NULL