From 7c1ee0634b4335bd7b31b2ef063fffbcfa3b6484 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 17 Jul 2017 14:45:10 +0200 Subject: tools/create-gce-image.sh: ignore SIGINT If the script is aborted at an unfortunate point, it leaves the whole system broken. E.g. we've seen that fdisk cannot update partition table until the next reboot. If you really need to kill it, use a different signal. But better wait. --- tools/create-gce-image.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh index 184581563..f0845e96e 100755 --- a/tools/create-gce-image.sh +++ b/tools/create-gce-image.sh @@ -42,6 +42,11 @@ set -eux +# If the script is aborted at an unfortunate point, it leaves the whole system broken. +# E.g. we've seen that fdisk cannot update partition table until the next reboot. +# If you really need to kill it, use a different signal. But better wait. +trap "" SIGINT + if [ ! -e $1/sbin/init ]; then echo "usage: create-gce-image.sh /dir/with/user/space/system /path/to/bzImage" exit 1 -- cgit mrf-deployment