diff --git a/build/initialization.sh b/build/initialization.sh index 991af0a1a..2b49cb6ec 100755 --- a/build/initialization.sh +++ b/build/initialization.sh @@ -5,8 +5,11 @@ set -e ! test -f /etc/docker/daemon.json || rm /etc/docker/daemon.json -apt update -apt install -y \ +apt-get update +apt-get purge -y \ + bluez \ + unattended-upgrades +apt-get install -y \ docker.io \ tor \ nginx \ @@ -21,7 +24,8 @@ apt install -y \ ecryptfs-utils \ cifs-utils \ samba-common-bin -sed -i 's/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades +apt-get autoremove -y + sed -i 's/Restart=on-failure/Restart=always/g' /lib/systemd/system/tor@default.service sed -i '/}/i \ \ \ \ application\/wasm \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ wasm;' /etc/nginx/mime.types sed -i 's/# server_names_hash_bucket_size 64;/server_names_hash_bucket_size 128;/g' /etc/nginx/nginx.conf diff --git a/build/write-image.sh b/build/write-image.sh index 14fe3a7e1..550d7a21f 100755 --- a/build/write-image.sh +++ b/build/write-image.sh @@ -27,7 +27,7 @@ sudo cp /tmp/eos-mnt/cmdline.txt /tmp/eos-mnt/cmdline.txt.orig sudo sed -i 's/^/usb-storage.quirks=152d:0562:u /g' /tmp/eos-mnt/cmdline.txt cat /tmp/eos-mnt/config.txt | grep -v "dtoverlay=" | sudo tee /tmp/eos-mnt/config.txt.tmp -echo "dtoverlay=pwm-2chan" | sudo tee -a /tmp/eos-mnt/config.txt.tmp +echo "dtoverlay=pwm-2chan,disable-bt" | sudo tee -a /tmp/eos-mnt/config.txt.tmp sudo mv /tmp/eos-mnt/config.txt.tmp /tmp/eos-mnt/config.txt # Unmount the boot partition and mount embassy partition