systemd activate lvm

This commit is contained in:
death916 2025-09-11 01:52:00 -07:00
parent 5c9acd5394
commit ec046ff776

View file

@ -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";
};
};
}