Making lvm2 install systemd stuff, and combine all in a single derivation.
This commit is contained in:
parent
3974fb283a
commit
c0fd88748a
@ -40,6 +40,11 @@ stdenv.mkDerivation {
|
||||
''
|
||||
substituteInPlace $out/lib/udev/rules.d/13-dm-disk.rules \
|
||||
--replace $out/sbin/blkid ${utillinux}/sbin/blkid
|
||||
|
||||
# Systemd stuff
|
||||
mkdir -p $out/etc/systemd/system $out/lib/systemd/system-generators
|
||||
cp scripts/blk_availability_systemd_red_hat.service $out/etc/systemd/system
|
||||
cp scripts/lvm2_activation_generator_systemd_red_hat $out/lib/systemd/system-generators
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -6805,6 +6805,15 @@ let
|
||||
|
||||
systemd = callPackage ../os-specific/linux/systemd { };
|
||||
|
||||
# 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";
|
||||
postInstall = p.postInstall + ''
|
||||
cp ${pkgs.lvm2}/lib/systemd/system-generators/* $out/lib/systemd/system-generat
|
||||
'';
|
||||
});
|
||||
|
||||
sysvinit = callPackage ../os-specific/linux/sysvinit { };
|
||||
|
||||
sysvtools = callPackage ../os-specific/linux/sysvinit {
|
||||
|
Loading…
Reference in New Issue
Block a user