-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
When /boot is full, system rebuilds fail #23926
Copy link
Copy link
Open
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Metadata
Metadata
Assignees
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Fields
Give feedbackNo fields configured for issues without a type.
Issue description
When the
/bootpartition is entirely full (eg. when old generations have not been removed for a long time), any kind ofnixos-rebuildcommand will fail if a new kernel is attempted to be installed.Deleting old generations and garbage-collecting does not fix the issue, because garbage collection doesn't touch the
/bootpartition, andnixos-rebuildwill only try to remove obsolete images after having placed the newinitrdin/boot. Since it's full, the new image cannot be copied over:... which means the "remove old images" routine never occurs, and the user is stuck.
I've worked around this by manually moving a very old image out of the
/bootpartition into/root, then runningnixos-rebuild boot, then moving back the moved image after cleanup and runningnixos-rebuild bootagain to ensure that it wasn't a necessary image after all.Steps to reproduce
/bootwith no space left.Technical details