commit | 24270e4657673f6413168163808c7c4023ca9506 | [log] [tgz] |
---|---|---|
author | azvyagintsev <azvyagintsev@mirantis.com> | Wed Jul 25 14:39:16 2018 +0300 |
committer | azvyagintsev <azvyagintsev@mirantis.com> | Wed Jul 25 14:43:51 2018 +0300 |
tree | e9931a5e7a0c6e71f88983b45262e3a2d47149ab | |
parent | 0b11f375c0f88464a3c78b69b5e36d3d0061c48a [diff] [blame] |
fix reboot * pkill kill's packer connection itself. have no idea how it was ok before Change-Id: I8acb727b162956d344a326a18ed645edc872b29c
diff --git a/common/ubuntu_reboot.sh b/common/ubuntu_reboot.sh new file mode 100644 index 0000000..d6790a5 --- /dev/null +++ b/common/ubuntu_reboot.sh
@@ -0,0 +1,7 @@ +#!/bin/bash -x + +touch /run/is_rebooted +echo 3 > /proc/sys/vm/drop_caches +sync +sleep 1 +shutdown -r now