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
0.kind: regressionSomething that worked before working no longer1.severity: blockerThis is preventing another PR or issue from being completed6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
The current installer builds the derivations on the store of the installer's image, which means that if you install a large config the install will fail since there is not enough space available.
Tested with nixpkgs unstable minimal install image.
Reacted by vyp, Bjørn Forsman, tv, Florian Jacob and kiara
Yes! I've been pondering this issue myself. My work-around has been to install as little as possible, and then once installed add the remaining packages. That's for a release-17.03 install; when I tried an unstable ISO I couldn't get it to install at all with only 2GB of RAM available.
I've thought about...
Temporarily utilizing the swap partition by placing a filesystem on it and making it the rw part of the unionfs.
For USB flash-drive installs, utilize a partition on the remaining space as the rw part of the unionfs.
But to generalize the concept, perhaps it's possible to pass a parameter via the boot-loader to tell whatever script sets up the Nix store unionfs to mount the filesystem at the specified block device.
I tend to do frequent installations to little memory-constrained VPS nodes in different locations (for e.g. monitoring agents, DNS nodes), and this issue bites me in the ass every single time >.>. I've been working around it by temporarily reducing my configuration from the intended final config (which I have prepared beforehand, as they're all pretty similar) to a minimal one, then building it to the final one after reboot.
My apologies. I'll try to improve this during the NixCon hackathon early next week! It won't be my primary goal for the hackathon but it's something that's been annoying me for a while so it'll probably get done 😄
As you've probably noticed (from the latest nix-devel email thread on it) I didn't work on this at NixCon, but it's still pretty high in my priority queue of things to do. If someone else wants to take a stab at it though, I won't be offended 😄
We already do use nixUnstable inside nixos-prepare-root, which nixos-install uses, so I think we're already set for this. Could definitely just set up a remote store for this.
0.kind: regressionSomething that worked before working no longer1.severity: blockerThis is preventing another PR or issue from being completed6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Activity
copumpkin commentedon Jul 11, 2017
This is my fault, sorry. I welcome suggestions for how to fix without duplicating all the logic that led to this change in the first place! 😦
Edit: this is the PR in question: #23026
bennofs commentedon Jul 12, 2017
Perhaps we can create a
/new-root/nix-storageand mount that on top of/nix/storeusingunionfsso that we use the new disk as temporary storage?There's two disadvantages of that approach though that I can see:
/nix/storeto/new-root/nix/store, even though/nix/storeis already mostly on the target disk.copumpkin commentedon Jul 12, 2017
There's also the new Nix 1.12 custom store location stuff, which will probably help us.
emmanuelrosa commentedon Jul 13, 2017
Yes! I've been pondering this issue myself. My work-around has been to install as little as possible, and then once installed add the remaining packages. That's for a release-17.03 install; when I tried an unstable ISO I couldn't get it to install at all with only 2GB of RAM available.
I've thought about...
But to generalize the concept, perhaps it's possible to pass a parameter via the boot-loader to tell whatever script sets up the Nix store unionfs to mount the filesystem at the specified block device.
Shados commentedon Oct 24, 2017
I tend to do frequent installations to little memory-constrained VPS nodes in different locations (for e.g. monitoring agents, DNS nodes), and this issue bites me in the ass every single time >.>. I've been working around it by temporarily reducing my configuration from the intended final config (which I have prepared beforehand, as they're all pretty similar) to a minimal one, then building it to the final one after reboot.
copumpkin commentedon Oct 24, 2017
My apologies. I'll try to improve this during the NixCon hackathon early next week! It won't be my primary goal for the hackathon but it's something that's been annoying me for a while so it'll probably get done 😄
copumpkin commentedon Nov 13, 2017
As you've probably noticed (from the latest nix-devel email thread on it) I didn't work on this at NixCon, but it's still pretty high in my priority queue of things to do. If someone else wants to take a stab at it though, I won't be offended 😄
danbst commentedon Nov 13, 2017
BTW, the idea to use nixUnstable in
nixos-installshould deserve some thought:nixos-unstableusers are warned about possible hiccupscopumpkin commentedon Nov 13, 2017
We already do use
nixUnstableinsidenixos-prepare-root, whichnixos-installuses, so I think we're already set for this. Could definitely just set up a remote store for this.vcunat commentedon Mar 4, 2018
Claimed to be fixed by #34636.
KiaraGrouwstra commentedon Jun 10, 2018
did #34636 make it into 18.03? I'm running into this on that.
has anyone who ran into this managed to verify this fix?
edit: fwiw I got a bit further by allocating 2 GB to the boot partition rather than the 512 MB the NixOS installation instructions recommended.