bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From 76da27ff77e5db07e502d4d8d26286d69c3f0319 Mon Sep 17 00:00:00 2001
|
|
From: Nikolay Amiantov <ab@fmap.me>
|
|
Date: Thu, 25 Jul 2019 20:45:55 +0300
|
|
Subject: [PATCH 14/19] systemd-shutdown: execute scripts in
|
|
/etc/systemd/system-shutdown
|
|
|
|
This is needed for NixOS to use such scripts as systemd directory is immutable.
|
|
---
|
|
src/shutdown/shutdown.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c
|
|
index 7ad9930677..fdb03a2e1a 100644
|
|
--- a/src/shutdown/shutdown.c
|
|
+++ b/src/shutdown/shutdown.c
|
|
@@ -335,7 +335,7 @@ int main(int argc, char *argv[]) {
|
|
_cleanup_free_ char *cgroup = NULL;
|
|
char *arguments[3];
|
|
int cmd, r, umount_log_level = LOG_INFO;
|
|
- static const char* const dirs[] = {SYSTEM_SHUTDOWN_PATH, NULL};
|
|
+ static const char* const dirs[] = {SYSTEM_SHUTDOWN_PATH, "/etc/systemd/system-shutdown", NULL};
|
|
|
|
/* The log target defaults to console, but the original systemd process will pass its log target in through a
|
|
* command line argument, which will override this default. Also, ensure we'll never log to the journal or
|
|
--
|
|
2.34.0
|
|
|