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.
This commit is contained in:
Samuel Thibault
2022-11-02 20:47:41 +01:00
committed by Luca Boccassi
parent 23f3a6f5ff
commit ede5a78f50
15 changed files with 115 additions and 12 deletions
+1
View File
@@ -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