Fix for the segmentation fault in qemu

Without this I'm getting a constant segmentation fault when running go under qemu on Fedora 30:

+ export GOPATH=/root/go
+ GOPATH=/root/go
+ go get -u github.com/bettercap/bettercap
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
bin/bash: line 52: 23146 Segmentation fault      (core dumped) go get -u github.com/bettercap/bettercap

https://bugs.launchpad.net/qemu/+bug/1696773
This commit is contained in:
strasharo 2019-10-01 23:52:59 +03:00 committed by GitHub
parent 8c840f9c82
commit 30744a8dd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ function provision_raspbian() {
# install bettercap
export GOPATH=/root/go
go get -u github.com/bettercap/bettercap
taskset -c 1 go get -u github.com/bettercap/bettercap
mv "\$GOPATH/bin/bettercap" /usr/bin/bettercap
# install bettercap caplets (cant run bettercap in chroot)