summary refs log tree commit diff
path: root/nixos/doc/manual/administration/rollback.xml
diff options
context:
space:
mode:
authorWilhelm Schuster <ws@wilhelm.re>2016-06-01 16:23:32 +0200
committerDomen Kožar <domen@dev.si>2016-06-01 15:23:32 +0100
commit5f8d14546b6a5a5df8a4768833497a674083dd8e (patch)
treecba469b3e03c7d3b33cf3392fff119fdbfaa68ee /nixos/doc/manual/administration/rollback.xml
parentf5471374250ccc2d0f94dd130fd113beb593725e (diff)
downloadnixlib-5f8d14546b6a5a5df8a4768833497a674083dd8e.tar
nixlib-5f8d14546b6a5a5df8a4768833497a674083dd8e.tar.gz
nixlib-5f8d14546b6a5a5df8a4768833497a674083dd8e.tar.bz2
nixlib-5f8d14546b6a5a5df8a4768833497a674083dd8e.tar.lz
nixlib-5f8d14546b6a5a5df8a4768833497a674083dd8e.tar.xz
nixlib-5f8d14546b6a5a5df8a4768833497a674083dd8e.tar.zst
nixlib-5f8d14546b6a5a5df8a4768833497a674083dd8e.zip
Manual: Explicitly mark commands that require to be run as root (#15589)
* manual: Mark commands that require root

Mark every command that requires to be run as root by prefixing them
with '#' instead of '$'.

* manual: Add note about commands that require root
Diffstat (limited to 'nixos/doc/manual/administration/rollback.xml')
-rw-r--r--nixos/doc/manual/administration/rollback.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/doc/manual/administration/rollback.xml b/nixos/doc/manual/administration/rollback.xml
index 23a3ece7c070..ae621f33de2c 100644
--- a/nixos/doc/manual/administration/rollback.xml
+++ b/nixos/doc/manual/administration/rollback.xml
@@ -19,7 +19,7 @@ fails to boot.  After the system has booted, you can make the selected
 configuration the default for subsequent boots:
 
 <screen>
-$ /run/current-system/bin/switch-to-configuration boot</screen>
+# /run/current-system/bin/switch-to-configuration boot</screen>
 
 </para>
 
@@ -27,12 +27,12 @@ $ /run/current-system/bin/switch-to-configuration boot</screen>
 system:
 
 <screen>
-$ nixos-rebuild switch --rollback</screen>
+# nixos-rebuild switch --rollback</screen>
 
 This is equivalent to running:
 
 <screen>
-$ /nix/var/nix/profiles/system-<replaceable>N</replaceable>-link/bin/switch-to-configuration switch</screen>
+# /nix/var/nix/profiles/system-<replaceable>N</replaceable>-link/bin/switch-to-configuration switch</screen>
 
 where <replaceable>N</replaceable> is the number of the NixOS system
 configuration.  To get a list of the available configurations, do:
@@ -45,4 +45,4 @@ lrwxrwxrwx 1 root root 78 Aug 12 13:54 /nix/var/nix/profiles/system-268-link ->
 
 </para>
 
-</section>
\ No newline at end of file
+</section>