From a8f5ab4b90abac9371810d4050d1e957b61ba5d6 Mon Sep 17 00:00:00 2001 From: Seth Thomas Date: Mon, 21 Sep 2015 23:52:41 +0100 Subject: [PATCH] use --force-install for VMware tools --- scripts/common/vmtools.sh | 2 +- scripts/freebsd/vmtools.sh | 2 +- scripts/omnios/vmtools.sh | 2 +- scripts/solaris10/vmtools.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/common/vmtools.sh b/scripts/common/vmtools.sh index 936d05918..48d3a658d 100644 --- a/scripts/common/vmtools.sh +++ b/scripts/common/vmtools.sh @@ -22,7 +22,7 @@ vmware-iso|vmware-vmx) mkdir -p /tmp/vmfusion-archive; mount -o loop $HOME_DIR/linux.iso /tmp/vmfusion; tar xzf /tmp/vmfusion/VMwareTools-*.tar.gz -C /tmp/vmfusion-archive; - /tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --default; + /tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --force-install; umount /tmp/vmfusion; rm -rf /tmp/vmfusion; rm -rf /tmp/vmfusion-archive; diff --git a/scripts/freebsd/vmtools.sh b/scripts/freebsd/vmtools.sh index 8ad971857..ad5962ab4 100644 --- a/scripts/freebsd/vmtools.sh +++ b/scripts/freebsd/vmtools.sh @@ -44,7 +44,7 @@ vmware-iso|vmware-vmx) mdconfig -a -t vnode -f $HOME_DIR/freebsd.iso -u 0; mount -t cd9660 /dev/md0 /tmp/vmfusion; tar xzf /tmp/vmfusion/vmware-freebsd-tools.tar.gz -C /tmp/vmfusion-archive; - /tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --default; + /tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --force-install; echo 'ifconfig_vxn0="dhcp"' >>/etc/rc.conf; umount /tmp/vmfusion; rm -rf /tmp/vmfusion; diff --git a/scripts/omnios/vmtools.sh b/scripts/omnios/vmtools.sh index 577783485..7fa684c32 100644 --- a/scripts/omnios/vmtools.sh +++ b/scripts/omnios/vmtools.sh @@ -21,7 +21,7 @@ if [ $PACKER_BUILDER_TYPE == 'vmware' ]; then mount -o ro -F hsfs $VMTOOLSDEV /mnt/vmtools mkdir /tmp/vmfusion-archive tar zxvf /mnt/vmtools/vmware-solaris-tools.tar.gz -C /tmp/vmfusion-archive - /tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --default + /tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --force-install umount /mnt/vmtools lofiadm -d $VMTOOLSDEV rmdir /mnt/vmtools diff --git a/scripts/solaris10/vmtools.sh b/scripts/solaris10/vmtools.sh index cb84f57cb..289e870ff 100644 --- a/scripts/solaris10/vmtools.sh +++ b/scripts/solaris10/vmtools.sh @@ -31,7 +31,7 @@ else mount -o ro -F hsfs $VMTOOLSDEV /cdrom mkdir /tmp/vmfusion-archive gtar zxvf /cdrom/vmware-solaris-tools.tar.gz -C /tmp/vmfusion-archive - /tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --default + /tmp/vmfusion-archive/vmware-tools-distrib/vmware-install.pl --force-install umount /cdrom lofiadm -d $VMTOOLSDEV rm -rf /mnt/vmtools