diff --git a/boot/boot-stage-1-init.sh b/boot/boot-stage-1-init.sh index e2171dc3a71..68a8b236afd 100644 --- a/boot/boot-stage-1-init.sh +++ b/boot/boot-stage-1-init.sh @@ -76,8 +76,8 @@ udevsettle if type -p dmsetup > /dev/null; then echo "dmsetup found, starting device mapper and lvm" dmsetup mknodes - vgscan --ignorelockingfailure - vgchange -ay --ignorelockingfailure + lvm vgscan --ignorelockingfailure + lvm vgchange -ay --ignorelockingfailure fi if test -n "$debug1devices"; then fail; fi diff --git a/system/system.nix b/system/system.nix index 2f9104e2155..082af065d02 100644 --- a/system/system.nix +++ b/system/system.nix @@ -63,8 +63,6 @@ rec { if test -n \"$devicemapper\"; then cp $devicemapper/sbin/dmsetup.static $out/bin/dmsetup cp $lvm2/sbin/lvm.static $out/bin/lvm - ln -s lvm $out/bin/vgscan - ln -s lvm $out/bin/vgchange fi cp $utillinux/bin/mount $utillinux/bin/umount $utillinux/sbin/pivot_root $out/bin cp -p $e2fsprogs/sbin/fsck* $e2fsprogs/sbin/e2fsck $out/bin