[Nix-dev] Re: [Nix-commits] SVN commit: nix - 19337 - eelco - nixos/trunk/modules/tasks

Nicolas Pierron nicolas.b.pierron at gmail.com
Sun Jan 10 20:30:14 CET 2010


Warning: An infinite recursion is hidden in your commit.

On Sun, Jan 10, 2010 at 20:14, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> Modified: nixos/trunk/modules/tasks/lvm.nix
> ===================================================================
> --- nixos/trunk/modules/tasks/lvm.nix   2010-01-10 19:05:30 UTC (rev 19336)
> +++ nixos/trunk/modules/tasks/lvm.nix   2010-01-10 19:14:42 UTC (rev 19337)
> @@ -6,6 +6,25 @@
>
>   config = {
>
> +    jobs.lvm =
> +      { startOn = "started udev or new-devices";

here.

> +
> +        script =
> +          ''
> +            # Scan for block devices that might contain LVM physical volumes
> +            # and volume groups.
> +            ${pkgs.lvm2}/sbin/vgscan --mknodes
> +
> +            # Make all logical volumes on all volume groups available, i.e.,
> +            # make them appear in /dev.
> +            ${pkgs.lvm2}/sbin/vgchange --available y
> +
> +            initctl emit -n new-devices

and here.

> +          '';
> +
> +        task = true;
> +      };
> +
>     environment.systemPackages = [ pkgs.lvm2 ];
>
>     services.udev.packages = [ pkgs.lvm2 ];

The same error previouly caused the live CD to loop while searching
for raid arrays.  You can fix it by emitting the flag only if their is
new devices.

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
Richard Feynman - I think I can safely say that nobody understands
quantum mechanics.



More information about the nix-dev mailing list