aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create-gce-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/create-gce-image.sh')
-rwxr-xr-xtools/create-gce-image.sh5
1 files changed, 5 insertions, 0 deletions
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