From f6fffb2722f3382159cec81a90b7d04e2884324a Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Wed, 27 Oct 2021 23:36:04 +0200 Subject: Nixos manual: nixos-rebuild boot or switch to clear boot entries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- nixos/doc/manual/administration/cleaning-store.chapter.md | 4 ++-- nixos/doc/manual/from_md/administration/cleaning-store.chapter.xml | 3 ++- 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 fb2090b31d8..c9140d0869c 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 0ca98dd6e51..4243d2bf53f 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 If your /boot partition runs out of space, after clearing old profiles you must rebuild your system with - nixos-rebuild to update the + nixos-rebuild boot or + nixos-rebuild switch to update the /boot partition and clear space. -- cgit 1.4.1