Merge pull request #19 from nix-community/kexec

README: fix kexec tarball urls
This commit is contained in:
Jörg Thalheim 2022-09-05 09:31:06 +01:00 committed by GitHub
commit 88b64cdf0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ 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 exists only in memory. At the time of
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
@ -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 -xJf- -C /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
/root/kexec/run
```

View file

@ -31,7 +31,7 @@ build_kexec_installer() {
# run the test once we have kvm support in github actions
# ignore=$(nix-build ./nix/kexec-installer-test.nix -I "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz" --argstr system "$arch")
out=$(nix-build '<nixpkgs/nixos>' -o "$tmp/kexec-installer-$arch" -I nixos-config=./nix/kexec-installer.nix -I "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz" --argstr system "$arch" -A config.system.build.kexecTarball)
echo "$out/tarball/nixos-kexec-installer-$arch.tar.xz"
echo "$out/nixos-kexec-installer-$arch.tar.gz"
}
main() {