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 <title>Testing the Installer</title>
7 <para>
8 Building, burning, and booting from an installation CD is rather tedious, so
9 here is a quick way to see if the installer works properly:
10<screen>
11# mount -t tmpfs none /mnt
12# nixos-generate-config --root /mnt
13$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-install
14# ./result/bin/nixos-install</screen>
15 To start a login shell in the new NixOS installation in
16 <filename>/mnt</filename>:
17<screen>
18$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-enter
19# ./result/bin/nixos-enter
20</screen>
21 </para>
22</chapter>