From 209edb3996e7714c3c9ec0768e6fedc527824be0 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 10 Nov 2022 12:02:05 +0100 Subject: [PATCH] add /etc/is_kexec for scripting --- nix/kexec-installer.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/kexec-installer.nix b/nix/kexec-installer.nix index 6877bbb..50f39a0 100644 --- a/nix/kexec-installer.nix +++ b/nix/kexec-installer.nix @@ -73,6 +73,9 @@ # Not really needed. Saves a few bytes and the only service we are running is sshd, which we want to be reachable. networking.firewall.enable = false; + # for detection if we are on kexec + environment.etc.is_kexec.text = "true"; + # Restore ssh host and user keys if they are available. # This avoids warnings of unknown ssh keys. boot.initrd.postMountCommands = ''