aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create-image.sh
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-01-23 19:48:04 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-01-24 10:03:42 +0100
commit40c6a8ebf50872036d42c06e2e7a19b973539860 (patch)
tree305d5a69d0870bc10f1db03b82c7bcaefce818cd /tools/create-image.sh
parent495b91f1198c40af039029d91057a2c981441751 (diff)
tools/create-image.sh: add psmisc package for killall
+ raise console output level, otherwise stack traces may be dropped
Diffstat (limited to 'tools/create-image.sh')
-rwxr-xr-xtools/create-image.sh3
1 files changed, 2 insertions, 1 deletions
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