[Nix-dev] Nixos boot fails at stage 1 in virtualbox
Corentin Henry
corentinhenry at gmail.com
Wed May 14 02:33:44 CEST 2014
Hi,
Thanks for your answer.
NixOS doesn't use /etc/configuration.nix but /etc/nixos/configuration.nix
> (likewise for hardware-configuration.nix). Maybe you were editing the
> wrong file?
>
No I was editing the right file, I made a mistake when writing my mail.
> > mounting /dev/sda1 on /...
> ...
> > mounting /dev/disk/by-label/nixos on /...
>
> This suggests that you have two fileSystems entries for /. The first
> succeeds,
> the second fails because the file system is already mounted.
Yes but I don't know why. By default, my
/etc/nixos/hardware-configuration.nix contains :
fileSystems."/" {
device = "/dev/sda1" ;
fsType = "ext4";
};
When I remove it and instead add the follwing in
/etc/nixos/configuration.nix I have the error.
fileSystems = [
{
mountPoint = "/";
label = "nixos"
}
];
So the solution was to to just keep hardware-configuration.nix as it is by
default, and add nothing to configuration.nix. That's odd though...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140513/de74dc33/attachment.html
More information about the nix-dev
mailing list