X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=build-debian-toolbox;h=13ee84dba55fd4fd8442a29aeff5bab68937259c;hp=e1b8578374ac79ecb3d414890bb2b4692e93314e;hb=6c6be615a01e1c9cf838a6288242ae3642ee5a05;hpb=3ba8040b33aacbed853fa501fa2d6585beeb6715 diff --git a/build-debian-toolbox b/build-debian-toolbox index e1b8578..13ee84d 100755 --- a/build-debian-toolbox +++ b/build-debian-toolbox @@ -5,6 +5,7 @@ RELEASE=${1:-sid} DISTRO=${2:-debian} toolbox rm -f $RELEASE || true +podman pull docker.io/$DISTRO:$RELEASE 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 @@ -13,8 +14,8 @@ podman exec -it $RELEASE sh -exc ' # 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 +# otherwise installing systemd fails +umount /var/log/journal apt-get update apt-get install -y libnss-myhostname sudo eatmydata libcap2-bin @@ -24,9 +25,6 @@ sed -i "s/nullok_secure/nullok/" /etc/pam.d/common-auth ' 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 @@ -35,7 +33,10 @@ 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 wget gnupg ubuntu-dev-tools python3-debian fakeroot libdistro-info-perl +sudo eatmydata apt-get install -y --no-install-recommends build-essential 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 openssh-client + +# autopkgtest +sudo eatmydata apt-get install -y --no-install-recommends autopkgtest qemu-system-x86 qemu-utils genisoimage ' toolbox enter --container $RELEASE