fix reboot

 * pkill kill's packer connection itself.
   have no idea how it was ok before

Change-Id: I8acb727b162956d344a326a18ed645edc872b29c
diff --git a/mirror-image/scripts/reboot.sh b/common/ubuntu_reboot.sh
similarity index 66%
rename from mirror-image/scripts/reboot.sh
rename to common/ubuntu_reboot.sh
index 35d13f9..d6790a5 100644
--- a/mirror-image/scripts/reboot.sh
+++ b/common/ubuntu_reboot.sh
@@ -1,7 +1,7 @@
 #!/bin/bash -x
 
+touch /run/is_rebooted
 echo 3 > /proc/sys/vm/drop_caches
 sync
 sleep 1
-pgrep -f "sshd: root@" | xargs kill -9
 shutdown -r now
diff --git a/day01-image/scripts/reboot.sh b/day01-image/scripts/reboot.sh
deleted file mode 100644
index 52adc95..0000000
--- a/day01-image/scripts/reboot.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-pgrep -f "sshd: root@" | xargs kill -9
-reboot now
\ No newline at end of file
diff --git a/day01-image/scripts/reboot.sh b/day01-image/scripts/reboot.sh
new file mode 120000
index 0000000..4869384
--- /dev/null
+++ b/day01-image/scripts/reboot.sh
@@ -0,0 +1 @@
+../../common/ubuntu_reboot.sh
\ No newline at end of file
diff --git a/mirror-image/scripts/reboot.sh b/mirror-image/scripts/reboot.sh
new file mode 120000
index 0000000..4869384
--- /dev/null
+++ b/mirror-image/scripts/reboot.sh
@@ -0,0 +1 @@
+../../common/ubuntu_reboot.sh
\ No newline at end of file