2009-10-12 18:36:19 +02:00
|
|
|
{ config, pkgs, ... }:
|
2006-12-24 02:07:28 +01:00
|
|
|
|
2009-03-06 13:27:28 +01:00
|
|
|
{
|
2006-12-24 02:07:28 +01:00
|
|
|
|
2009-10-12 18:36:19 +02:00
|
|
|
###### implementation
|
2009-03-06 13:27:28 +01:00
|
|
|
|
2009-10-12 18:36:19 +02:00
|
|
|
config = {
|
2009-03-06 13:27:28 +01:00
|
|
|
|
2010-01-10 20:14:42 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2010-01-07 17:14:50 +01:00
|
|
|
environment.systemPackages = [ pkgs.lvm2 ];
|
2010-01-07 16:55:05 +01:00
|
|
|
|
2010-01-07 23:39:35 +01:00
|
|
|
services.udev.packages = [ pkgs.lvm2 ];
|
|
|
|
|
2009-03-06 13:27:28 +01:00
|
|
|
};
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2006-12-24 02:07:28 +01:00
|
|
|
}
|