1<chapter xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 version="5.0"
5 xml:id="ch-testing-installer">
6
7<title>Testing the Installer</title>
8
9<para>Building, burning, and booting from an installation CD is rather
10tedious, so here is a quick way to see if the installer works
11properly:
12
13<screen>
14# mount -t tmpfs none /mnt
15# nixos-generate-config --root /mnt
16$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-install
17# ./result/bin/nixos-install</screen>
18
19To start a login shell in the new NixOS installation in
20<filename>/mnt</filename>:
21
22<screen>
23$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-enter
24# ./result/bin/nixos-enter
25</screen>
26
27</para>
28
29</chapter>