diff --git a/doc/manual/development.xml b/doc/manual/development.xml index 71072f0db2a..3c48acfa57b 100644 --- a/doc/manual/development.xml +++ b/doc/manual/development.xml @@ -81,4 +81,23 @@ $ ./result/bin/nixos-install +
+ +Testing the <literal>initrd</literal> + +A quick way to test whether the kernel and the initial ramdisk +boot correctly is to use QEMU’s and + options: + + +$ nix-build /etc/nixos/nixos -A initialRamdisk -o initrd +$ nix-build /etc/nixos/nixos -A kernel -o kernel +$ qemu-system-x86_64 -kernel ./kernel/vmlinuz -initrd ./initrd/initrd -hda /dev/null + + + + +
+ +