]> piware.de Git - bin.git/blobdiff - build-debian-toolbox
process-photos: Rename *.JPG to *.jpg
[bin.git] / build-debian-toolbox
index 13ee84dba55fd4fd8442a29aeff5bab68937259c..82868761747be77a1cbcd88b91e5523d48b869b3 100755 (executable)
@@ -17,11 +17,19 @@ echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io
 # otherwise installing systemd fails
 umount /var/log/journal
 
+# enable sources
+if [ -e /etc/apt/sources.list.d/debian.sources ]; then
+    sed -i "/^Types:/ s/deb$/deb deb-src/" /etc/apt/sources.list.d/debian.sources
+fi
+
 apt-get update
 apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin
 
 # allow sudo with empty password
 sed -i "s/nullok_secure/nullok/" /etc/pam.d/common-auth
+
+# unbreak slow host name resolution
+sed -i "/^hosts:/ s/files dns myhostname/files myhostname dns/" /etc/nsswitch.conf
 '
 
 toolbox run --container $RELEASE sh -exc '