From 2b1456887b0ca3b9d1e140ab44d13bd41dcbf642 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 7 Dec 2016 10:17:46 +0100 Subject: tools/create-image.sh: use net.core.bpf_jit_enable = 1 bpf_jit_enable = 2 causes printing of all programs to console. Produces lots of output and is not very useful. Disable it. --- tools/create-gce-image.sh | 2 +- tools/create-image.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh index c3f6cc12e..1a6ddca2b 100755 --- a/tools/create-gce-image.sh +++ b/tools/create-gce-image.sh @@ -66,7 +66,7 @@ echo "T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100" | sudo tee -a disk.mnt/et 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 "debug.exception-trace = 0" | sudo tee -a disk.mnt/etc/sysctl.conf -echo "net.core.bpf_jit_enable = 2" | 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 echo -en "127.0.0.1\tlocalhost\n" | sudo tee disk.mnt/etc/hosts echo "nameserver 8.8.8.8" | sudo tee -a disk.mnt/etc/resolve.conf diff --git a/tools/create-image.sh b/tools/create-image.sh index 9fa12c4bc..e0533ca93 100755 --- a/tools/create-image.sh +++ b/tools/create-image.sh @@ -17,7 +17,7 @@ echo 'T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100' | sudo tee -a wheezy/etc/ 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 'debug.exception-trace = 0' | sudo tee -a wheezy/etc/sysctl.conf -echo "net.core.bpf_jit_enable = 2" | 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 sudo mkdir -p wheezy/root/.ssh/ rm -rf ssh -- cgit mrf-deployment