diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-01-23 19:48:04 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-01-24 10:03:42 +0100 |
| commit | 40c6a8ebf50872036d42c06e2e7a19b973539860 (patch) | |
| tree | 305d5a69d0870bc10f1db03b82c7bcaefce818cd | |
| parent | 495b91f1198c40af039029d91057a2c981441751 (diff) | |
tools/create-image.sh: add psmisc package for killall
+ raise console output level, otherwise stack traces may be dropped
| -rwxr-xr-x | tools/create-gce-image.sh | 1 | ||||
| -rwxr-xr-x | tools/create-image.sh | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh index d63c35b21..8be01c44b 100755 --- a/tools/create-gce-image.sh +++ b/tools/create-gce-image.sh @@ -65,6 +65,7 @@ sudo sed -i "/^root/ { s/:x:/::/ }" disk.mnt/etc/passwd echo "T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100" | sudo tee -a disk.mnt/etc/inittab echo -en "\nauto eth0\niface eth0 inet dhcp\n" | sudo tee -a disk.mnt/etc/network/interfaces echo "debugfs /sys/kernel/debug debugfs defaults 0 0" | sudo tee -a disk.mnt/etc/fstab +echo "kernel.printk = 7 4 1 3" | sudo tee -a disk.mnt/etc/sysctl.conf echo "debug.exception-trace = 0" | sudo tee -a disk.mnt/etc/sysctl.conf echo "net.core.bpf_jit_enable = 1" | sudo tee -a disk.mnt/etc/sysctl.conf echo "net.core.bpf_jit_harden = 2" | sudo tee -a disk.mnt/etc/sysctl.conf diff --git a/tools/create-image.sh b/tools/create-image.sh index 808a9b863..b577a0f23 100755 --- a/tools/create-image.sh +++ b/tools/create-image.sh @@ -9,13 +9,14 @@ set -eux # Create a minimal Debian-wheezy distributive as a directory. sudo rm -rf wheezy mkdir -p wheezy -sudo debootstrap --include=openssh-server,curl,tar,time,strace,sudo,less wheezy wheezy +sudo debootstrap --include=openssh-server,curl,tar,time,strace,sudo,less,psmisc wheezy wheezy # Set some defaults and enable promtless ssh to the machine for root. sudo sed -i '/^root/ { s/:x:/::/ }' wheezy/etc/passwd echo 'T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100' | sudo tee -a wheezy/etc/inittab printf '\nauto eth0\niface eth0 inet dhcp\n' | sudo tee -a wheezy/etc/network/interfaces echo 'debugfs /sys/kernel/debug debugfs defaults 0 0' | sudo tee -a wheezy/etc/fstab +echo "kernel.printk = 7 4 1 3" | sudo tee -a wheezy/etc/sysctl.conf echo 'debug.exception-trace = 0' | sudo tee -a wheezy/etc/sysctl.conf echo "net.core.bpf_jit_enable = 1" | sudo tee -a wheezy/etc/sysctl.conf echo "net.core.bpf_jit_harden = 2" | sudo tee -a wheezy/etc/sysctl.conf |
