Bootloader: Difference between revisions
Phanirithvij (talk | contribs) m oopsie, fix iso url |
→How do I remove older generations from the bootloader?: Answer the question exactly |
||
| Line 30: | Line 30: | ||
=== How do I remove older generations from the bootloader? === | === How do I remove older generations from the bootloader? === | ||
First, | First, remove some system generations of your system, then rebuild. The rebuild script will remove stale boot entries. | ||
The first command, in the example below, removes | The first command, in the example below, removes system generations older than 14 days. | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo nix- | sudo nix-env --delete-generations --profile /nix/var/nix/profiles/system 14d | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||