3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/modules/tasks/lvm.nix
Eelco Dolstra 533448ae37 * udev: don't set the STARTUP flag anymore, since LVM no longer uses
it.
* Don't call "vgscan" anymore; VG scans are supposed to be automatic.

svn path=/nixos/trunk/; revision=33275
2012-03-19 19:10:27 +00:00

31 lines
520 B
Nix

{ config, pkgs, ... }:
{
###### implementation
config = {
jobs.lvm =
{ startOn = "started udev or new-devices";
script =
''
# 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
'';
task = true;
};
environment.systemPackages = [ pkgs.lvm2 ];
services.udev.packages = [ pkgs.lvm2 ];
};
}