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.
This commit is contained in:
parent
d9b1cb2896
commit
be0555b8a8
@ -161,6 +161,13 @@ nixpkgs https://nixos.org/channels/nixpkgs-unstable</screen>
|
|||||||
existing systems without the help of a rescue USB drive or similar.
|
existing systems without the help of a rescue USB drive or similar.
|
||||||
</para>
|
</para>
|
||||||
</warning>
|
</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>
|
<screen><prompt>$ </prompt>sudo PATH="$PATH" NIX_PATH="$NIX_PATH" `which nixos-install` --root /mnt</screen>
|
||||||
<para>
|
<para>
|
||||||
Again, please refer to the <literal>nixos-install</literal> step in
|
Again, please refer to the <literal>nixos-install</literal> step in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user