summaryrefslogtreecommitdiffstats
path: root/nixos/doc
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2021-11-04 23:45:16 +0100
committerGitHub <noreply@github.com>2021-11-04 23:45:16 +0100
commit49e31e85bec76e553782de74cfd89266595aa93d (patch)
tree1c0a8df7333ae2fc072ad6dbee31393a39cb3db4 /nixos/doc
parentd67b17f217e66b5c3034ad39694e75da931e39a8 (diff)
parentf6fffb2722f3382159cec81a90b7d04e2884324a (diff)
Merge pull request #143230 from nomeata/docs-boot-nixos-rebuild-switch
Nixos manual: nixos-rebuild switch to clear boot entries
Diffstat (limited to 'nixos/doc')
-rw-r--r--nixos/doc/manual/administration/cleaning-store.chapter.md4
-rw-r--r--nixos/doc/manual/from_md/administration/cleaning-store.chapter.xml3
2 files changed, 4 insertions, 3 deletions
diff --git a/nixos/doc/manual/administration/cleaning-store.chapter.md b/nixos/doc/manual/administration/cleaning-store.chapter.md
index fb2090b31d84..c9140d0869c7 100644
--- a/nixos/doc/manual/administration/cleaning-store.chapter.md
+++ b/nixos/doc/manual/administration/cleaning-store.chapter.md
@@ -58,5 +58,5 @@ a while to finish.
## NixOS Boot Entries {#sect-nixos-gc-boot-entries}
If your `/boot` partition runs out of space, after clearing old profiles
-you must rebuild your system with `nixos-rebuild` to update the `/boot`
-partition and clear space.
+you must rebuild your system with `nixos-rebuild boot` or `nixos-rebuild
+switch` to update the `/boot` partition and clear space.
diff --git a/nixos/doc/manual/from_md/administration/cleaning-store.chapter.xml b/nixos/doc/manual/from_md/administration/cleaning-store.chapter.xml
index 0ca98dd6e510..4243d2bf53f9 100644
--- a/nixos/doc/manual/from_md/administration/cleaning-store.chapter.xml
+++ b/nixos/doc/manual/from_md/administration/cleaning-store.chapter.xml
@@ -64,7 +64,8 @@ $ nix-store --optimise
<para>
If your <literal>/boot</literal> partition runs out of space,
after clearing old profiles you must rebuild your system with
- <literal>nixos-rebuild</literal> to update the
+ <literal>nixos-rebuild boot</literal> or
+ <literal>nixos-rebuild switch</literal> to update the
<literal>/boot</literal> partition and clear space.
</para>
</section>