From d80bde37a820767757a5ab33a83a7485822f5625 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 3 Jul 2021 12:02:48 +0800 Subject: [PATCH] nixos: nixos/doc/manual/development/testing-installer.xml to CommonMark --- nixos/doc/manual/development/development.xml | 2 +- .../development/testing-installer.chapter.md | 18 +++++++++++++++ .../manual/development/testing-installer.xml | 22 ------------------- .../development/testing-installer.chapter.xml | 22 +++++++++++++++++++ 4 files changed, 41 insertions(+), 23 deletions(-) create mode 100644 nixos/doc/manual/development/testing-installer.chapter.md delete mode 100644 nixos/doc/manual/development/testing-installer.xml create mode 100644 nixos/doc/manual/from_md/development/testing-installer.chapter.xml diff --git a/nixos/doc/manual/development/development.xml b/nixos/doc/manual/development/development.xml index 5b2fedf16066..05c6a5b11341 100644 --- a/nixos/doc/manual/development/development.xml +++ b/nixos/doc/manual/development/development.xml @@ -15,5 +15,5 @@ - + diff --git a/nixos/doc/manual/development/testing-installer.chapter.md b/nixos/doc/manual/development/testing-installer.chapter.md new file mode 100644 index 000000000000..2eaa01614920 --- /dev/null +++ b/nixos/doc/manual/development/testing-installer.chapter.md @@ -0,0 +1,18 @@ +# Testing the Installer {#ch-testing-installer} + +Building, burning, and booting from an installation CD is rather +tedious, so here is a quick way to see if the installer works properly: + +```ShellSession +# mount -t tmpfs none /mnt +# nixos-generate-config --root /mnt +$ nix-build '' -A config.system.build.nixos-install +# ./result/bin/nixos-install +``` + +To start a login shell in the new NixOS installation in `/mnt`: + +```ShellSession +$ nix-build '' -A config.system.build.nixos-enter +# ./result/bin/nixos-enter +``` diff --git a/nixos/doc/manual/development/testing-installer.xml b/nixos/doc/manual/development/testing-installer.xml deleted file mode 100644 index 902f995fbc1b..000000000000 --- a/nixos/doc/manual/development/testing-installer.xml +++ /dev/null @@ -1,22 +0,0 @@ - - Testing the Installer - - Building, burning, and booting from an installation CD is rather tedious, so - here is a quick way to see if the installer works properly: - -# mount -t tmpfs none /mnt -# nixos-generate-config --root /mnt -$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-install -# ./result/bin/nixos-install - To start a login shell in the new NixOS installation in - /mnt: - -$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-enter -# ./result/bin/nixos-enter - - - diff --git a/nixos/doc/manual/from_md/development/testing-installer.chapter.xml b/nixos/doc/manual/from_md/development/testing-installer.chapter.xml new file mode 100644 index 000000000000..286d49f3c291 --- /dev/null +++ b/nixos/doc/manual/from_md/development/testing-installer.chapter.xml @@ -0,0 +1,22 @@ + + Testing the Installer + + Building, burning, and booting from an installation CD is rather + tedious, so here is a quick way to see if the installer works + properly: + + +# mount -t tmpfs none /mnt +# nixos-generate-config --root /mnt +$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-install +# ./result/bin/nixos-install + + + To start a login shell in the new NixOS installation in + /mnt: + + +$ nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-enter +# ./result/bin/nixos-enter + +