os-prober: add missing lvm2 dependency
Otherwise, os-prober may fail to see LVM partitions.
This commit is contained in:
parent
93470276f9
commit
f5728ad5e7
|
@ -5,7 +5,8 @@ grub2, # grub-mount and grub-probe
|
|||
cryptsetup, # cryptsetup
|
||||
libuuid, # blkid and blockdev
|
||||
udev, # udevadm udevinfo
|
||||
ntfs3g # ntfs3g
|
||||
ntfs3g, # ntfs3g
|
||||
lvm2 # lvs
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -54,7 +55,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 ]} \
|
||||
--run "[ -d /var/lib/os-prober ] || mkdir /var/lib/os-prober"
|
||||
done;
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue