You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to install nixos on my Lenovo T420 laptop, and since my config always gets an error i tried the basic generated config, un-commenting the stuff that was there, no more and still getting the same error which is following:
Failed to create EFI Boot variable entry: No space left on device
Traceback (most recent call last):
File "/nix/store/w3kckp1k7hngiadrcllybnji9nc8di25-systemd-boot-builder.py", line 102, in <module>
subprocess.check_call(["/nix/store/mnbl0f66cykmwjin47r7rlnwwgiac7ys-systemd-231/bin/bootctl", "--path=/boot", "install"])
File "/nix/store/ignn33dyacf5vm5hsmwiaj617226x1js-python-2.7.12/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/nix/store/mnbl0f66cykmwjin47r7rlnwwgiac7ys-systemd-231/bin/bootctl', '--path=/boot', 'install']' returned non-zero exit status 1
Steps to reproduce
nixos-install (classic stuff before that, creating the partitions using gdisk, mounting the main partition on /mnt and efi boot partition on /mnt/boot)
I somehow managed to install default nixos generated config (without the kde desktop environment) from the 17.09 live cd (i previously tried with the older live cd 16.09). When I tried to install with the older live cd, I of course added a new nixos channel (either unstable or 17.03, from the current nixos manual) and then run nix-channel --update, but it failed every time.
When I did that, I managed to boot into the installed system and ran nixos-rebuild switch without problems. So I guess this is kind of an ad-hoc solution...
They did occur using the latest live cd (17.09), but that's when trying to install my full config (which works on my other devices, so I don't think my config is the problem). I haven't tried installing basic nixos-generated config first with 17.09.
The whole process went like this:
-Downloaded the 17.09 graphical live cd, tried to install nixos with my config - failed.
-Tried 16.09 graphical medium which I had lying around, tried to install my config - failed.
-Tried to install nixos with default 16.09 nixos-generate-config configuration with everything uncommented except the kde desktop environment. Still failed.
-Tried the 17.09 installation with nixos-generate-config, and uncommenting everything except the desktop environment - SUCCESS.
-Once the install finished I booted it up, and proceeded to install my configuration and succeeded without problems.
AFAIK there is no good work around for that issue but assuming that is indeed the cause your options, as I understand it, are:
perform the installation using a minimal configuration, once the new system boots nixos-rebuild switch it with your full configuration..
assuming the full system configuration you are building may fit into memory (not sure how one would check it) remount the /nix/.rw-store so that it uses more RAM (by default it uses 50% I think). I think the right incantation to do that would be something like mount -o remount,size=7G /nix/.rw-store. You might be able to add swap to make it bigger than what would fit into RAM but I'm non 100% sure on that.
Just a follow up, setting boot.loader.efi.canTouchEfiVariables to false (I had mine as true) fixed the installation issue and then once NixOS has been installed you can set it back to true.
Oh, sorry, I misread the top message. Mine was a very similar message, but /nix/.rw-store (or what the name is called) was what became filled up in my case, but in any case I did that and it worked. Not sure if it was related but in any case, it worked.
Just a follow up, setting boot.loader.efi.canTouchEfiVariables to false (I had mine as true) fixed the installation issue and then once NixOS has been installed you can set it back to true.
Activity
savorocks commentedon Feb 2, 2018
The problem persists on Fujitsu Lifebook E754...
erictapen commentedon Feb 2, 2018
dtzWill commentedon Feb 2, 2018
Related, possibly helpful: #27821.
Not sure if it'd result in the problems you're seeing, but make sure you're booting the install media with UEFI...
What are the relevant configuration.nix options you're setting?
savorocks commentedon Feb 2, 2018
savorocks commentedon Feb 2, 2018
The config is nixos-generate-config for uefi installation and still fails.
savorocks commentedon Feb 2, 2018
I somehow managed to install default nixos generated config (without the kde desktop environment) from the 17.09 live cd (i previously tried with the older live cd 16.09). When I tried to install with the older live cd, I of course added a new nixos channel (either unstable or 17.03, from the current nixos manual) and then run nix-channel --update, but it failed every time.
When I did that, I managed to boot into the installed system and ran nixos-rebuild switch without problems. So I guess this is kind of an ad-hoc solution...
dtzWill commentedon Feb 2, 2018
Quick clarification, for posterity's sake if nothing else:
Is it accurate that the problems occurred when using 16.09 installation media but did not occur (at all) using latest (17.09)?
savorocks commentedon Feb 2, 2018
They did occur using the latest live cd (17.09), but that's when trying to install my full config (which works on my other devices, so I don't think my config is the problem). I haven't tried installing basic nixos-generated config first with 17.09.
The whole process went like this:
-Downloaded the 17.09 graphical live cd, tried to install nixos with my config - failed.
-Tried 16.09 graphical medium which I had lying around, tried to install my config - failed.
-Tried to install nixos with default 16.09 nixos-generate-config configuration with everything uncommented except the kde desktop environment. Still failed.
-Tried the 17.09 installation with nixos-generate-config, and uncommenting everything except the desktop environment - SUCCESS.
-Once the install finished I booted it up, and proceeded to install my configuration and succeeded without problems.
pbogdan commentedon Feb 3, 2018
@BjornMelgaard your error sounds like an instance of #27307
pbogdan commentedon Feb 3, 2018
Correct, the issue I referenced hasn't been fixed as of yet, and AFAICT is present in both 17.09 and unstable ISO's..
pbogdan commentedon Feb 3, 2018
AFAIK there is no good work around for that issue but assuming that is indeed the cause your options, as I understand it, are:
nixos-rebuild switchit with your full configuration../nix/.rw-storeso that it uses more RAM (by default it uses 50% I think). I think the right incantation to do that would be something likemount -o remount,size=7G /nix/.rw-store. You might be able to add swap to make it bigger than what would fit into RAM but I'm non 100% sure on that.zarkone commentedon Mar 27, 2018
got the same issue, can't build because of no space left. Downloaded iso from here: https://nixos.org/nixos/download.html, this one: https://d3g5gsiof5omrk.cloudfront.net/nixos/17.09/nixos-17.09.3129.1dcd022f01b/nixos-minimal-17.09.3129.1dcd022f01b-x86_64-linux.iso
I see that my mounted volume is emoty when mounted
unionfsvolume/nix/storeis full.src386 commentedon Mar 31, 2018
Same here...
vcunat commentedon Mar 31, 2018
Assuming your instances are caused by #27307, that should be fixed on 18.03. That is supposed to be officially released any day now (we're a little late), but it should be very well usable now if you want: https://nixos.org/channels/nixos-18.03
sondr3 commentedon Apr 10, 2018
I’m getting this issue right now when trying to install 18.03 sadly.
wmertens commentedon Apr 11, 2018
sondr3 commentedon Apr 11, 2018
Just a follow up, setting
boot.loader.efi.canTouchEfiVariablesto false (I had mine as true) fixed the installation issue and then once NixOS has been installed you can set it back to true.wmertens commentedon Apr 11, 2018
7c6f434c commentedon Apr 11, 2018
Well, if EFI setting storage is full (which happens)…
sondr3 commentedon Apr 11, 2018
Oh, sorry, I misread the top message. Mine was a very similar message, but
/nix/.rw-store(or what the name is called) was what became filled up in my case, but in any case I did that and it worked. Not sure if it was related but in any case, it worked.jcrben commentedon Apr 23, 2018
@sondr3 thanks, that allowed me to install 18.03
vcunat commentedon Apr 23, 2018
I suppose you suffer from #38477 ?
NixOS 18.03 install instructions: bigger boot partition to prevent Ni…
nixos-discourse commentedon Jun 21, 2020
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/20-03-uefi-installation-problem-vs-instructions/7783/2