Bug#1040727: Correction

2023-07-09 Thread Super Veridical
Correction: The issue occurs only in graphical and text modes of
installation, but not in liveCD. LiveCD installation (somewhat)
correctly warns about the lack of space (says 10G is needed)



Bug#1040727: The Installation system doesn't check available free disk space, either provides an uninformative error message or completes installation "successfully" with a resulting non-working syste

2023-07-09 Thread Super Veridical
Package: installation-reports

Boot method: "-cdrom" key in qemu with OVMF firmware
Image version: 
https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.0.0-amd64-kde.iso
Date: Jul 8 2023

Machine: ASUS ROG STRIX B650E-F GAMING WIFI
Processor: AMD Ryzen 9 7950X, "-cpu host -smp 6" flags in qemu
Memory: "-m 6000" flag in qemu
Partitions: "Guided partition" method during the installation with a
single root partition.

The entire qemu command:
qemu-system-x86_64 -nic user,model=virtio-net-pci -cpu host -smp 6 -m
6000 -enable-kvm -device virtio-vga-gl -display gtk,gl=on -drive
file=/usr/share/edk2-ovmf/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on
-drive if=pflash,format=raw,file=OVMF_VARS.fd -drive
format=raw,file=sda.img,if=virtio -drive
format=raw,file=sdb.img,if=virtio -cdrom
~/debian-live-12.0.0-amd64-kde.iso

qemu --version output: "QEMU emulator version 7.2.3"
Host OS: Gentoo Linux

With "qemu-img create -f raw -o size=6G sda.img" i.e. 6GB virtual hdd:

Initial boot:   [O]
Detect network card:[O]
Configure network:  [O]
Detect media:   [O]
Load installer modules: [O]
Detect hard drives: [O]
Partition hard drives:  [O]
Install base system:[E]

proceeds to the system installation step despite not having enough
space in the root partition, fails with an uninformative error message
"the step that failed : install the system", in all three installation
modes (livecd, graphical, text)

with "qemu-img create -f raw -o size=12G sda.img" (should work
according to this documentation entry
https://www.debian.org/releases/stable/amd64/ch03s04.en.html):

Overall install:[E]

Installs seemingly successfully, but shows black screen after login
due to completely exhausted disk space on the root partition. "Avail
0" in df output. I.e. installation process exhausted disk space but
completed installation without an apparent error.

with "qemu-img create -f raw -o size=22G sda.img" works perfectly fine.