Package: debian-installer
Version: bookworm-DI-alpha2
Severity: wishlist

Dear Maintainer,

tell DI to create a partition, allocate it to LVM, create a VG, within
that VG create an LV of size '1G'. Having done that, flip to ALT-F2,
wake up the shell and run 'lvs'. lvs reports the size as 952.00m.

While I fully realise that DI's help text only uses examples with
uppercase suffixes ('K', 'M', 'G', etc) and that those suffixes
would be interpreted by 'lvs --unit=' correctly, I would argue that
the default behaviour - or rather the default failure for DI and LVM
to agree on a unit - is unintuitive and ugly.

Worse still, DI *does* accept lower case suffixes on sizes (e.g. '1g'),
which one might expect to mean the same thing that a lowercase suffix
means in LVM, but DI doesn't respect this difference.

Worse still, if you're familiar with DI and LVM then you can spot
this at the time an LV is created, but if you are not then this
"disagreement" only becomes apparent once you have completed the
installation and you run 'df' or whatever.

I fully realise that this is a cosmetic error (and the ticket is
accordingly tagged 'wishlist'), but I would argue it is nonetheless
unintuitive behaviour that could be *easily* addressed by making DI
support lowercase suffixes properly and adjusting the help text
accordingly.

For the time being, my own solution to this is to tell DI not '1G'
but '1073741824B', but whipping out my calculator in the middle of
an install also seems wrong.

Regards,

Alexis 

-- System Information:
Debian Release: 11.6
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-21-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to