diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh index d63c35b2..8be01c44 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 808a9b86..b577a0f2 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