From be0555b8a84b6c3813e58492f232a3714b891424 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Fri, 13 Dec 2019 20:42:42 +0100 Subject: 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. --- nixos/doc/manual/installation/installing-from-other-distro.xml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nixos/doc') diff --git a/nixos/doc/manual/installation/installing-from-other-distro.xml b/nixos/doc/manual/installation/installing-from-other-distro.xml index 8ed45899fd7f..2947f9d5a0b9 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 existing systems without the help of a rescue USB drive or similar. + + + 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 PATH="$PATH:/usr/sbin:/sbin" + in the following command. + + $ sudo PATH="$PATH" NIX_PATH="$NIX_PATH" `which nixos-install` --root /mnt Again, please refer to the nixos-install step in -- cgit v1.2.3