Remove unneeded copy of lvm in initrd.
Something replaces symlinks in initrd with copies. Removed symlinks to lvm and changed syntax (vgscan -> lvm vgscan). svn path=/nixos/trunk/; revision=9233
This commit is contained in:
parent
3944916856
commit
867d814d27
@ -76,8 +76,8 @@ udevsettle
|
|||||||
if type -p dmsetup > /dev/null; then
|
if type -p dmsetup > /dev/null; then
|
||||||
echo "dmsetup found, starting device mapper and lvm"
|
echo "dmsetup found, starting device mapper and lvm"
|
||||||
dmsetup mknodes
|
dmsetup mknodes
|
||||||
vgscan --ignorelockingfailure
|
lvm vgscan --ignorelockingfailure
|
||||||
vgchange -ay --ignorelockingfailure
|
lvm vgchange -ay --ignorelockingfailure
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$debug1devices"; then fail; fi
|
if test -n "$debug1devices"; then fail; fi
|
||||||
|
@ -63,8 +63,6 @@ rec {
|
|||||||
if test -n \"$devicemapper\"; then
|
if test -n \"$devicemapper\"; then
|
||||||
cp $devicemapper/sbin/dmsetup.static $out/bin/dmsetup
|
cp $devicemapper/sbin/dmsetup.static $out/bin/dmsetup
|
||||||
cp $lvm2/sbin/lvm.static $out/bin/lvm
|
cp $lvm2/sbin/lvm.static $out/bin/lvm
|
||||||
ln -s lvm $out/bin/vgscan
|
|
||||||
ln -s lvm $out/bin/vgchange
|
|
||||||
fi
|
fi
|
||||||
cp $utillinux/bin/mount $utillinux/bin/umount $utillinux/sbin/pivot_root $out/bin
|
cp $utillinux/bin/mount $utillinux/bin/umount $utillinux/sbin/pivot_root $out/bin
|
||||||
cp -p $e2fsprogs/sbin/fsck* $e2fsprogs/sbin/e2fsck $out/bin
|
cp -p $e2fsprogs/sbin/fsck* $e2fsprogs/sbin/e2fsck $out/bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user