Merge pull request #143230 from nomeata/docs-boot-nixos-rebuild-switch
Nixos manual: nixos-rebuild switch to clear boot entries
commit49e31e85bec76e553782de74cfd89266595aa93d
authorMaximilian Bosch <maximilian@mbosch.me>
dateThu 4 Nov 2021, 23:45 (5 years ago)
parentd67b17ff6fffb2
nixos/doc/manual/administration/cleaning-store.chapter.md+2−2
@@ -58,5 +58,5 @@ a while to finish.
5858## NixOS Boot Entries {#sect-nixos-gc-boot-entries}
5959
6060If your `/boot` partition runs out of space, after clearing old profiles
61−you must rebuild your system with `nixos-rebuild` to update the `/boot`
62−partition and clear space.
61+you must rebuild your system with `nixos-rebuild boot` or `nixos-rebuild
62+switch` to update the `/boot` partition and clear space.
nixos/doc/manual/from_md/administration/cleaning-store.chapter.xml+2−1
@@ -64,7 +64,8 @@ $ nix-store --optimise
6464 <para>
6565 If your <literal>/boot</literal> partition runs out of space,
6666 after clearing old profiles you must rebuild your system with
67− <literal>nixos-rebuild</literal> to update the
67+ <literal>nixos-rebuild boot</literal> or
68+ <literal>nixos-rebuild switch</literal> to update the
6869 <literal>/boot</literal> partition and clear space.
6970 </para>
7071 </section>