[Nix-dev] Nixos boot fails at stage 1 in virtualbox
ikrek vagyunk
ikervagyok at gmail.com
Wed May 14 16:05:39 CEST 2014
hi,
i had this error too - you need the fsType option. (i had it with btrfs,
but essentially it's the same error)
have fun
2014-05-14 7:27 GMT+02:00 Wout Mertens <wout.mertens at gmail.com>:
> 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
>>
>>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
--
This Message was sent 2u/4u by iker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140514/462b0ace/attachment.html
More information about the nix-dev
mailing list