On Tue, 30 Mar 2021 02:04:03 +0200 Johannes Schauer Marin Rodrigues wrote:

[...]
> That depends on what you want to do inside that qemu environment. And it's
> totally possible to create a 10 GB disk image in your $HOME while only using
> 200 MB in your /tmp for the chroot.

Well... I tried dropping the TMPDIR setting and exporting in the script.
But:

  $ cd ~/Downloads/
  $ mmdebstrap-autopkgtest-qemu 8GiB
  I: automatically chosen mode: unshare
  I: chroot architecture amd64 is equal to the host's architecture
  I: automatically chosen format: tar
  I: using /tmp/mmdebstrap.h6DOq1LzM2 as tempdir
  [...]
  Setting up linux-image-5.10.0-5-amd64 (5.10.26-1) ...
  [...]
  cp: error writing 
'/var/tmp/mkinitramfs_chjGze//usr/lib/modules/5.10.0-5-amd64/kernel/drivers/input/mouse/psmouse.ko':
 No space left on device
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  E: run_chroot failed: E: env --unset=APT_CONFIG --unset=TMPDIR 
/usr/sbin/chroot /tmp/mmdebstrap.h6DOq1LzM2 apt-get --yes install 
-oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false dmidecode linux-image-amd64 
logrotate sensible-utils fdisk rsyslog systemd libpam-modules-bin iproute2 
vim-common passwd iputils-ping init e2fsprogs kmod adduser tzdata ifupdown udev 
vim-tiny libreadline8 gcc-10-base mawk apt apt-utils gpgv gcc-9-base mount 
libpam-runtime whiptail debian-archive-keyring procps debconf-i18n tasksel-data 
readline-common nano netbase isc-dhcp-client systemd-sysv nftables cpio debconf 
less isc-dhcp-common libpam-modules cron failed
  W: listening on child socket failed: 
  I: removing tempdir /tmp/mmdebstrap.h6DOq1LzM2...


The same happens with:

  $ mmdebstrap-autopkgtest-qemu 1GiB


I cannot understand why you needed less than 200 MB ...


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Attachment: pgpm3w8jtm6fC.pgp
Description: PGP signature

Reply via email to