NixOS / nixos

OBSOLETE (go to NixOS/nixpkgs) - NixOS, a Linux distribution based on the Nix package manager - OBSOLETE (go to NixOS/nixpkgs)
MIT License
176 stars 102 forks source link

nixos-rebuild "Died" #292

Closed gitfoxi closed 8 years ago

gitfoxi commented 10 years ago

I put a line like:

fileSystems."/".device = "/dev/disk/by-partlabel/Linux filesystem";

when I should have put:

 fileSystems."/".device = "/dev/disk/by-partlabel/Linux\ filesystem";

When it goes into /etc/fstab it doesn't get quoted (it probably should if that's possible) so you need to escape the space. nixos-rebuild switch let me make this mistake. Then it wouldn't let me fix my mistake and couldn't roll it back. Just kept saying it died in /nix/var/nix/profiles/system/bin/switch-to-configuration at line 239 which is where it validates the strings in your current /etc/fstab instead of validating the new one it's going to create. I had to mount my volume read/write to fix it in /nix/store

So, to summarize, 3 things:

You can supposedly escape spaces with \040. I tried that as well as \\040 in case nix thinks I'm escaping the 0 and still no luck so I actually gave up and just renamed the stupid partitions.

vcunat commented 10 years ago

Please, do not use this old repository. There's https://github.com/NixOS/nixpkgs instead.