Merge pull request #22 from nix-community/kexec-tarballs

Add remark about swap
This commit is contained in:
Jörg Thalheim 2022-09-20 08:42:04 +02:00 committed by GitHub
commit 02b79ab079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,11 +13,11 @@ It consists of the [kernel image](https://github.com/nix-community/nixos-images/
Kexec is a mechanism in Linux to load a new kernel from a running Linux to
replace the current kernel. This is useful for booting the Nixos installer from
existing Linux distributions, such as server provider that do not offer a NixOS
option. After running kexec, the NixOS installer exists only in memory. At the time of
writing, this requires at least 2.5GB of RAM in the system. If not enough RAM
is available, the initrd cannot be loaded. Because the NixOS runs only in RAM,
users can reformat all the system's discs to prepare for a new NixOS
installation.
option. After running kexec, the NixOS installer exists only in memory. At the
time of writing, this requires at least 2.5GB of physical RAM (swap does not
count) in the system. If not enough RAM is available, the initrd cannot be
loaded. Because the NixOS runs only in RAM, users can reformat all the system's
discs to prepare for a new NixOS installation.
Currently, there are two variants of kexec: [nixos-kexec-installer](https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/nixos-kexec-installer-x86_64-linux.tar.xz)
and [kexec bundle](https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/kexec-bundle-x86_64-linux).
@ -27,7 +27,7 @@ The nixos-kexec-installer tarball is the new preferred method.
It can be booted as follows by running these commands as root:
```
curl -sL https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/nixos-kexec-installer-x86_64-linux.tar.gz | tar -xzf- -C /root
curl -L https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/nixos-kexec-installer-x86_64-linux.tar.gz | tar -xzf- -C /root
/root/kexec/run
```