Merge pull request #76843 from jakobrs/os-prober-dep

os-prober: add missing dmraid, lvm2 dependencies
This commit is contained in:
worldofpeace 2020-02-01 19:34:20 -05:00 committed by GitHub
commit edbf5d86e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,9 @@ grub2, # grub-mount and grub-probe
cryptsetup, # cryptsetup
libuuid, # blkid and blockdev
udev, # udevadm udevinfo
ntfs3g # ntfs3g
ntfs3g, # ntfs3g
dmraid, # dmraid
lvm2 # lvs
}:
stdenv.mkDerivation rec {
@ -54,7 +56,7 @@ stdenv.mkDerivation rec {
done;
for file in $out/bin/*; do
wrapProgram $file \
--suffix PATH : ${stdenv.lib.makeBinPath [ grub2 udev coreutils cryptsetup libuuid ntfs3g ]} \
--suffix PATH : ${stdenv.lib.makeBinPath [ grub2 udev coreutils cryptsetup libuuid ntfs3g lvm2 dmraid ]} \
--run "[ -d /var/lib/os-prober ] || mkdir /var/lib/os-prober"
done;
'';