Revision ff7783b8 snf-image-helper/snf-image-helper.in

b/snf-image-helper/snf-image-helper.in
34 34
set -e
35 35
set -o pipefail
36 36

  
37
if [ "x$1" != "x--force" ]; then
38
    log_error "WARNING: This will cause the system to halt."
39
    log_error "Use --force if you know what you're doing."
40
    exit 1
41
fi
42

  
37 43
# terminate helper vm when the script exits
38 44
add_cleanup telinit 0
39 45

  

Also available in: Unified diff