2013-01-08 15:05:04 +00:00
|
|
|
From 0085f49cd0ba889e3db9102f328f6044ae3a2c18 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
|
|
Date: Tue, 8 Jan 2013 15:44:33 +0100
|
2013-01-08 17:41:21 +00:00
|
|
|
Subject: [PATCH 1/6] Make "systemctl daemon-reexec" do the right thing on
|
2013-01-08 15:05:04 +00:00
|
|
|
NixOS
|
|
|
|
|
|
|
|
---
|
|
|
|
src/core/main.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2012-09-21 19:57:12 +01:00
|
|
|
|
|
|
|
diff --git a/src/core/main.c b/src/core/main.c
|
2013-01-08 15:05:04 +00:00
|
|
|
index 1ee3c9c..1686f60 100644
|
2012-09-21 19:57:12 +01:00
|
|
|
--- a/src/core/main.c
|
|
|
|
+++ b/src/core/main.c
|
2013-01-08 15:05:04 +00:00
|
|
|
@@ -1858,7 +1858,7 @@ finish:
|
2012-09-21 19:57:12 +01:00
|
|
|
char_array_0(sfd);
|
|
|
|
|
|
|
|
i = 0;
|
|
|
|
- args[i++] = SYSTEMD_BINARY_PATH;
|
|
|
|
+ args[i++] = "/run/current-system/systemd/lib/systemd/systemd";
|
|
|
|
if (switch_root_dir)
|
|
|
|
args[i++] = "--switched-root";
|
|
|
|
args[i++] = arg_running_as == SYSTEMD_SYSTEM ? "--system" : "--user";
|
2013-01-08 15:05:04 +00:00
|
|
|
--
|
|
|
|
1.8.0.1
|
|
|
|
|