From 15df8218358a12ec2cca72349ace9b015e3533de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 2 Feb 2023 08:22:40 +0100 Subject: [PATCH] mention nixos installer detection --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bb703fc..c74e817 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,16 @@ configuration. ## Requirements -- x86_64 Linux system with kexec support (most x86_64 machine do have kexec support) +`nixos-remote` can detect nixos installer if those contain the identifier +`VARIANT=installer` in their `/etc/os-release` file. This is the case for the +nixos-unstable installer and will be also part of nixos 23.05. If installer is +detected `nixos-remote` will not try to kexec into its own image. + +If your system is not booted into a nixos installer than the following +requirements apply for kexec to succeed: + +- x86_64 Linux system with kexec support (most x86_64 machine do have kexec + support) or you have to provide your own [image](https://github.com/numtide/nixos-anywhere#using-your-own-kexec-image) - At least 2.5GB RAM (swap does not count). If you do not have enough RAM you will see failures unpacking the initrd), this is because kexec needs to load the whole nixos into memory.