In helper put sysrq shutdown cmd in an inf loop
[snf-image] / snf-image-helper / common.sh
index 0cd7271..9c45142 100644 (file)
@@ -88,8 +88,11 @@ report_task_end() {
 }
 
 system_poweroff() {
-    # Credits to psomas@grnet.gr for this ...
-    echo o > /proc/sysrq-trigger
+    while [ 1 ]; do
+        # Credits to psomas@grnet.gr for this ...
+        echo o > /proc/sysrq-trigger
+        sleep 1
+    done
 }
 
 get_base_distro() {