3
0
Fork 0
forked from mirrors/nixpkgs

systemd: put "-with-lvm2" suffix where it belongs

This commit is contained in:
Evgeny Egorochkin 2016-05-16 10:09:28 +03:00
parent 4b979eef29
commit d9ee918547

View file

@ -11195,12 +11195,11 @@ in
# In nixos, you can set systemd.package = pkgs.systemd_with_lvm2 to get
# LVM2 working in systemd.
systemd_with_lvm2 = pkgs.lib.overrideDerivation pkgs.systemd (p: {
name = p.name + "-with-lvm2";
systemd_with_lvm2 = pkgs.appendToName "with-lvm2" (pkgs.lib.overrideDerivation pkgs.systemd (p: {
postInstall = p.postInstall + ''
cp "${pkgs.lvm2}/lib/systemd/system-generators/"* $out/lib/systemd/system-generators
'';
});
}));
sysvinit = callPackage ../os-specific/linux/sysvinit { };