summary refs log tree commit diff
path: root/nixos/doc/manual/installation
diff options
context:
space:
mode:
authorMax Bruckner <max@maxbruckner.de>2019-12-13 20:42:42 +0100
committerDoron Behar <doron.behar@gmail.com>2020-11-13 10:30:20 +0200
commitbe0555b8a84b6c3813e58492f232a3714b891424 (patch)
tree8baafe70911ad91fa06b376187baf05cc72ef052 /nixos/doc/manual/installation
parentd9b1cb289651718ac137b0587c6aef5bdd40c8cf (diff)
downloadnixpkgs-be0555b8a84b6c3813e58492f232a3714b891424.tar
nixpkgs-be0555b8a84b6c3813e58492f232a3714b891424.tar.gz
nixpkgs-be0555b8a84b6c3813e58492f232a3714b891424.tar.bz2
nixpkgs-be0555b8a84b6c3813e58492f232a3714b891424.tar.lz
nixpkgs-be0555b8a84b6c3813e58492f232a3714b891424.tar.xz
nixpkgs-be0555b8a84b6c3813e58492f232a3714b891424.tar.zst
nixpkgs-be0555b8a84b6c3813e58492f232a3714b891424.zip
nixos/doc: Add note about /usr/sbin and /sbin
An installation from Debian buster may fail without adding /usr/sbin to
$PATH because chroot is not in the PATH of a non-root user.
Diffstat (limited to 'nixos/doc/manual/installation')
-rw-r--r--nixos/doc/manual/installation/installing-from-other-distro.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/doc/manual/installation/installing-from-other-distro.xml b/nixos/doc/manual/installation/installing-from-other-distro.xml
index 8ed45899fd7..2947f9d5a0b 100644
--- a/nixos/doc/manual/installation/installing-from-other-distro.xml
+++ b/nixos/doc/manual/installation/installing-from-other-distro.xml
@@ -161,6 +161,13 @@ nixpkgs https://nixos.org/channels/nixpkgs-unstable</screen>
      existing systems without the help of a rescue USB drive or similar.
     </para>
    </warning>
+   <note>
+    <para>
+     On some distributions there are separate PATHS for programs intended only for root.
+     In order for the installation to succeed, you might have to use <literal>PATH="$PATH:/usr/sbin:/sbin"</literal>
+     in the following command.
+    </para>
+   </note>
 <screen><prompt>$ </prompt>sudo PATH="$PATH" NIX_PATH="$NIX_PATH" `which nixos-install` --root /mnt</screen>
    <para>
     Again, please refer to the <literal>nixos-install</literal> step in