Update shutdown command as workaround 63/7263/1
authorMike Marchetti <mmarchetti@sandvine.com>
Wed, 27 Feb 2019 14:36:08 +0000 (09:36 -0500)
committerMike Marchetti <mmarchetti@sandvine.com>
Wed, 27 Feb 2019 14:36:44 +0000 (09:36 -0500)
Change-Id: I9c79e2997e79d445faaa2030693bcca5312ae90c
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
packer/ubuntu1604-ovf-osm.json

index 5b22d2e..64fa183 100644 (file)
@@ -31,7 +31,7 @@
       "ssh_password": "vagrant",
       "ssh_port": 22,
       "ssh_wait_timeout": "10000s",
-      "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
+      "shutdown_command": "echo '/sbin/shutdown -h -P now' > /tmp/shutdown.sh; echo 'vagrant'|sudo -S sh '/tmp/shutdown.sh'"
       "virtualbox_version_file": ".vbox_version",
       "vm_name": "{{user `vm_name`}}",
       "output_directory": "{{user `build_dir`}}",