git.iko.soy/typeable/nixpkgs
on master help sign in
Nixos manual: nixos-rebuild boot or switch to clear boot entries

the `nixos-rebuild` command has multiple subcommands, and not each of them would fix the problem of a large `/boot` partition, so let’s be more precise here.

commitf6fffb2722f3382159cec81a90b7d04e2884324a authorJoachim Breitner <mail@joachim-breitner.de> dateWed 27 Oct 2021, 23:36 (5 years ago) parented814a4
2 files changed+4−3
nixos/doc/manual/administration/cleaning-store.chapter.md+2−2 nixos/doc/manual/from_md/administration/cleaning-store.chapter.xml+2−1
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>