#
# $Id$
-# This is the virt-p2v shell script.
+# This is the virt-p2v script.
-cat > /usr/bin/virt-p2v.sh << '__EOF1234__'
-@VIRT-P2V.SH@
+cat > /usr/bin/virt-p2v.ml << '__EOF1234__'
+@VIRT-P2V.ML@
__EOF1234__
-chmod 0755 /usr/bin/virt-p2v.sh
-/sbin/restorecon /usr/bin/virt-p2v.sh
+chmod 0755 /usr/bin/virt-p2v.ml
+/sbin/restorecon /usr/bin/virt-p2v.ml
# Install custom inittab.
cat > /etc/inittab << '__EOF4123__'
@INITTAB@
__EOF4123__
-# Install custom lvm.conf.new (the shell script will rename to
-# lvm.conf when the time comes).
-cat > /etc/lvm/lvm.conf.new << '__EOF4312__'
+# Install custom lvm.conf. The script selects this by adjusting
+# $LVM_SYSTEM_DIR environment variable at the right time.
+cp -a /etc/lvm /etc/lvm.new
+cat > /etc/lvm.new/lvm.conf << '__EOF4312__'
@LVM.CONF@
__EOF4312__