Hi, Quoting Francesco Poli (2024-01-12 20:05:02) > On Thu, 11 Jan 2024 21:04:16 +0100 Johannes Schauer Marin Rodrigues wrote: > > Do you see yourself debugging this further by yourself? You probably > > understand that it's hard for me to investigate something that I cannot > > test myself. > > Well, you wrote the script, together with Helmut Grohne (who reads us > in Cc). > I rather see myself helping the two of you in debugging it... :-)
could you try applying this patch and then try again: --%<--------------------------------------------------------------------- --- a/mmdebstrap-autopkgtest-build-qemu +++ b/mmdebstrap-autopkgtest-build-qemu @@ -302,17 +302,12 @@ if test -n "$SCRIPT"; then '--customize-hook=rm -f "$1/userscript"' fi -EXT4_OFFSET_BYTES=$(( (FAT_OFFSET_SECTORS + FAT_SIZE_SECTORS) * 512)) -EXT4_OPTIONS="offset=$EXT4_OFFSET_BYTES,assume_storage_prezeroed=1" set -- "$@" \ "--customize-hook=download vmlinuz '$WORKDIR/kernel'" \ "--customize-hook=download initrd.img '$WORKDIR/initrd'" \ - '--customize-hook=mount --bind "$1" "$1/mnt"' \ - '--customize-hook=mount --bind "$1/mnt/mnt" "$1/mnt/dev"' \ - '--customize-hook=/sbin/mkfs.ext4 -d "$1/mnt" -L autopkgtestvm -E '"'$EXT4_OPTIONS' '$IMAGE' '$SIZE'" \ - '--customize-hook=umount --lazy "$1/mnt"' \ + --format=ext2 \ "$RELEASE" \ - /dev/null + "$IMAGE" test -n "$MIRROR" && set -- "$@" "$MIRROR" test -n "$KEYRING" && set -- "$@" "--keyring=$KEYRING" @@ -320,6 +315,9 @@ test -n "$KEYRING" && set -- "$@" "--keyring=$KEYRING" echo "mmdebstrap $*" mmdebstrap "$@" || die "mmdebstrap failed" +EXT4_OFFSET_BYTES=$(( (FAT_OFFSET_SECTORS + FAT_SIZE_SECTORS) * 512)) +fallocate --insert-range --offset=0 --length=$EXT4_OFFSET_BYTES "$IMAGE" + unshare -U -r --map-groups=auto chown 0:0 "$IMAGE" chmod "$(printf %o "$(( 0666 - 0$(umask) ))")" "$IMAGE" -->%--------------------------------------------------------------------- > Indeed, the error does not seem to have anything to do with a "No space left > on device" failure: > > [...] > mke2fs 1.47.0 (5-Feb-2023) > mkfs.ext4: Permission denied while trying to determine filesystem size > E: setup failed: E: command failed: /sbin/mkfs.ext4 -d "$1/mnt" -L > autopkgtestvm -E 'offset=134217728,assume_storage_prezeroed=1' > 'sid_amd64.img' '25G' > [...] > > What can cause mkfs.ext4 to fail with a "Permission denied" error? This is unshare mode. Funny things happen. :) The error message you see comes from misc/mke2fs.c in e2fsprogs as a result of a failed call to ext2fs_open_file(). What puzzles me is, that it's permission denied for you and working fine for me. Thanks! cheers, josch
signature.asc
Description: signature