-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No space left on device on nixos-rebuild #192
Comments
My workaround is to bind (running as root) cd
mkdir kernels-tmp
mount --bind kernels-tmp/ /boot/kernels
# nixos-rebuild switch ...
umount /boot/kernels
rm -rf /boot/kernels/*
mv kernels-tmp/* /boot/kernels/
rm -rf kernels-tmp |
I've been able to alleviate this problem even further by ensuring only one kernel version is maintained at a time. https://search.nixos.org/options?channel=unstable&show=boot.loader.grub.configurationLimit
Still not ideal, but I don't have to do the file shuffling workaround anymore. |
thank you @jonahbron! fwiw i was able to just run |
tried, all the suggestions shared here. didn't worked for me. Checked the linux-6.1 kernel is smallest and comes with the script. Keeping the kernel pinned fixes the issue for me. Hope it helps someone :)
|
@master-hax That's a great tip thank you, I wasn't confident that deleting those files was safe, but that one command is certainly much easier 😃 |
I'm encountering an error when running nixos-rebuild on a freshly infected system.
It seems that the error originates from the fact that the original system's partition mounted at
/boot/efi
is later being mounted at/boot
. That's not inherently a problem except that it is only 100MB or so, not large enough to hold the entire kernel.The text was updated successfully, but these errors were encountered: