X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=build-debian-toolbox;h=ce0318324809fe4cd3fc4e6a1dbb62d3b8490403;hp=95584390a5975d01593dba10ed0c1858cb741507;hb=f0b67cfbd6684fcc0ceff76aae57cb0e70e38671;hpb=2b6b0bf80b022c560c3cdcae42c9ddb2c140ac01 diff --git a/build-debian-toolbox b/build-debian-toolbox index 9558439..ce03183 100755 --- a/build-debian-toolbox +++ b/build-debian-toolbox @@ -10,7 +10,7 @@ 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://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 @@ -18,6 +18,9 @@ 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 +sed -i "s/deb.debian.org/ftp.de.debian.org/" /etc/apt/sources.list + apt-get update apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin @@ -29,10 +32,15 @@ toolbox run --container $RELEASE sh -exc ' # otherwise installing systemd fails sudo umount /var/log/journal +# useful hostname +. /etc/os-release +echo "${ID}-${VERSION_ID:-sid}" | sudo tee /etc/hostname +sudo hostname -F /etc/hostname + sudo eatmydata apt-get -y dist-upgrade # development tools -sudo eatmydata apt-get install -y --no-install-recommends git-buildpackage libwww-perl less vim lintian debhelper manpages-dev git dput pristine-tar bash-completion python-keyrings.alt wget gnupg ubuntu-dev-tools python3-debian +sudo eatmydata apt-get install -y --no-install-recommends git-buildpackage libwww-perl less vim lintian debhelper manpages-dev git dput pristine-tar bash-completion wget gnupg ubuntu-dev-tools python3-debian fakeroot libdistro-info-perl ' toolbox enter --container $RELEASE