X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=build-debian-toolbox;h=e1b8578374ac79ecb3d414890bb2b4692e93314e;hp=fbeb13b2f95bc7c17c1d9916421692ec911fa566;hb=2519aec669d57a9e9d8947a74036eda6ed12e9a2;hpb=26be63bc0fe7468eb0ef4bdbc8b2eb51e6bf72d2 diff --git a/build-debian-toolbox b/build-debian-toolbox index fbeb13b..e1b8578 100755 --- a/build-debian-toolbox +++ b/build-debian-toolbox @@ -10,14 +10,12 @@ toolbox -y create -c $RELEASE --image docker.io/$DISTRO:$RELEASE # can't do that with toolbox run yet, as we need to install sudo first podman start $RELEASE podman exec -it $RELEASE sh -exc ' -# https://bugzilla.redhat.com/show_bug.cgi?id=1785244, https://github.com/containers/toolbox/pull/380 -if [ ! -e /etc/resolv.conf ]; then - ln -sfn /run/host/monitor/resolv.conf /etc/resolv.conf -fi - # go-faster apt/dpkg echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/unsafe-io +# location based redirector gets it wrong with company VPN; also add deb-src +sed -i "s/deb.debian.org/ftp.de.debian.org/; /^deb\b/ { p; s/^deb/deb-src/ }" /etc/apt/sources.list + apt-get update apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin @@ -31,7 +29,7 @@ sudo umount /var/log/journal # useful hostname . /etc/os-release -echo "${ID}-${VERSION_ID}" | sudo tee /etc/hostname +echo "${ID}-${VERSION_ID:-sid}" | sudo tee /etc/hostname sudo hostname -F /etc/hostname sudo eatmydata apt-get -y dist-upgrade