mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-10 13:54:15 +00:00
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.
This commit is contained in:
parent
8382eb648f
commit
7c1ee0634b
@ -7,6 +7,8 @@ const createImageScript = `#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
trap "" SIGINT
|
||||
|
||||
if [ ! -e $1/sbin/init ]; then
|
||||
echo "usage: create-gce-image.sh /dir/with/user/space/system /path/to/bzImage"
|
||||
exit 1
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user