summaryrefslogtreecommitdiff
path: root/src/initctl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-11-01 16:53:02 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2022-11-02 20:47:41 +0100
commitede5a78f50ed2d5f86dc7a117de2a51b397d52d4 (patch)
tree4defd303c0d7769dcbdf46d8fbc347ebfd136d30 /src/initctl
parent23f3a6f5ff864fd26063c6c35fdaa6d85de566c7 (diff)
downloadsystemd-ede5a78f50ed2d5f86dc7a117de2a51b397d52d4.tar.gz
shutdown: Add Xen kexec support
In the Xen case, it's the hypervisor which manages kexec. We thus have to ask it whether a kernel is loaded, instead of relying on /sys/kernel/kexec_loaded.
Diffstat (limited to 'src/initctl')
-rw-r--r--src/initctl/initctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/initctl/initctl.c b/src/initctl/initctl.c
index 52b1ba199a..e1b85d5218 100644
--- a/src/initctl/initctl.c
+++ b/src/initctl/initctl.c
@@ -24,6 +24,7 @@
#include "main-func.h"
#include "memory-util.h"
#include "process-util.h"
+#include "reboot-util.h"
#include "special.h"
#define SERVER_FD_MAX 16