[Nix-dev] Nixos boot fails at stage 1 in virtualbox

Wout Mertens wout.mertens at gmail.com
Wed May 14 07:27:19 CEST 2014


I think you should keep your filesystem config as an attribute set, not an
array.
The module maps it to an array internally by copying the name into
mountPoint if it doesn't exist and using attrValues.
On May 14, 2014 2:33 AM, "Corentin Henry" <corentinhenry at gmail.com> wrote:

> 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...
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140514/44232dd5/attachment.html 


More information about the nix-dev mailing list