document installing system from repo in rescue mode

This commit is contained in:
Jörg Thalheim 2021-03-25 09:25:28 +01:00
parent 527c6ad27a
commit 5a048f0836
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -88,3 +88,24 @@ command to also deploy secrets afterwards:
```console
$ ./deploy --force-reboot --include build02
```
## Install/Fix system from Hetzner recovery mode
1. Mount all filesystems to /mnt
2. Install kexec image from Hetzner recovery system as described in [kexec.nix](infra/roles/kexec.nix) and boot into it
3. Download infra repo
``` console
$ nix-shell -p git --run "git clone https://github.com/nix-community/infra && cd infra && nix-shell"
```
4. Build new system closure:
``` console
nix-shell> nix-build -A buildXX-system
```
5. Install system closure
```console
$ nixos-install --system ./result
```