Skip to content

Commit

Permalink
systemd: put "-with-lvm2" suffix where it belongs
Browse files Browse the repository at this point in the history
  • Loading branch information
Phreedom committed May 16, 2016
1 parent 4b979ee commit d9ee918
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };

Expand Down

0 comments on commit d9ee918

Please sign in to comment.