diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-12-07 10:17:46 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-12-07 10:17:46 +0100 |
| commit | 2b1456887b0ca3b9d1e140ab44d13bd41dcbf642 (patch) | |
| tree | 3a50d9f651cc6b072b84cbd5dcb81c9e74ce14e8 | |
| parent | 99b473cb4b8aba49fc6258fbfb4ce029f4d60fe3 (diff) | |
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.
| -rwxr-xr-x | tools/create-gce-image.sh | 2 | ||||
| -rwxr-xr-x | tools/create-image.sh | 2 |
2 files changed, 2 insertions, 2 deletions
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 |
