mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-11 04:48:25 -07:00
systemd activate lvm
This commit is contained in:
parent
5c9acd5394
commit
ec046ff776
1 changed files with 12 additions and 0 deletions
|
|
@ -61,4 +61,16 @@
|
|||
"net.ipv4.ip_forward" = 1;
|
||||
"net.ipv6.conf.all.forwarding" = 1;
|
||||
};
|
||||
|
||||
systemd.services.lvm-activate = {
|
||||
description = "Activate LVM volume groups";
|
||||
wantedBy = [ "local-fs.target" ];
|
||||
before = [ "local-fs.target" ];
|
||||
path = [ pkgs.lvm2 ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStart = "${pkgs.lvm2}/bin/vgchange -ay";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue