Hi,
Am 26. Juli 2023 23:19:31 MESZ schrieb Thorsten Glaser <t...@debian.org>: > >Could this information (valid unit sufficēs) be added to the dialogue >where the size is entered? Screen space should suffice. Yes, I already thought about if changing the template would make sense here. That would require synchron changings in partman-partitioning and partman-auto-lvm. Patches attached as a proposal. CC'ing debian-l10n-english for template review (three identical additions in two packages). Holger
diff --git a/debian/partman-partitioning.templates b/debian/partman-partitioning.templates index 8464201..298a3ae 100644 --- a/debian/partman-partitioning.templates +++ b/debian/partman-partitioning.templates @@ -25,30 +25,32 @@ _Description: Write previous changes to disk and continue? . You cannot undo this operation. . Please note that the resize operation may take a long time. Template: partman-partitioning/new_size Type: string Default: some number # :sl2: _Description: New partition size: The minimum size for this partition is ${MINSIZE} (or ${PERCENT}) and its maximum size is ${MAXSIZE}. . Hint: "max" can be used as a shortcut to specify the maximum size, or enter a percentage (e.g. "20%") to use that percentage of the maximum size. + You can specify partition sizes in decimal units (like MB or GB) as well as + in binary units (like GiB or TiB). Template: partman-partitioning/bad_new_size Type: error # :sl2: _Description: The size entered is invalid The size you entered was not understood. Please enter a positive integer size followed by an optional unit of measure (e.g. "200 GB"). The default unit of measure is the megabyte. Template: partman-partitioning/big_new_size Type: error # :sl2: _Description: The size entered is too large The size you entered is larger than the maximum size of the partition. Please enter a smaller size to continue. @@ -65,30 +67,32 @@ Type: error # :sl2: _Description: Resize operation failure An error occurred while writing the changes to the storage devices. . The resize operation has been aborted. Template: partman-partitioning/new_partition_size Type: string Default: some number # :sl2: _Description: New partition size: The maximum size for this partition is ${MAXSIZE}. . Hint: "max" can be used as a shortcut to specify the maximum size, or enter a percentage (e.g. "20%") to use that percentage of the maximum size. + You can specify partition sizes in decimal units (like MB or GB) as well as + in binary units (like GiB or TiB). Template: partman-partitioning/bad_new_partition_size Type: error # :sl2: _Description: Invalid size Template: partman-partitioning/new_partition_place Type: select # :sl1: __Choices: Beginning, End # :sl1: _Description: Location for the new partition: Please choose whether you want the new partition to be created at the beginning or at the end of the available space.
diff --git a/debian/partman-auto-lvm.templates b/debian/partman-auto-lvm.templates index 271294e..f5f4bbd 100644 --- a/debian/partman-auto-lvm.templates +++ b/debian/partman-auto-lvm.templates @@ -79,30 +79,32 @@ Type: string Default: some number # :sl3: _Description: Amount of volume group to use for guided partitioning: You may use the whole volume group for guided partitioning, or part of it. If you use only part of it, or if you add more disks later, then you will be able to grow logical volumes later using the LVM tools, so using a smaller part of the volume group at installation time may offer more flexibility. . The minimum size of the selected partitioning recipe is ${MINSIZE} (or ${PERCENT}); please note that the packages you choose to install may require more space than this. The maximum available size is ${MAXSIZE}. . Hint: "max" can be used as a shortcut to specify the maximum size, or enter a percentage (e.g. "20%") to use that percentage of the maximum size. + You can specify partition sizes in decimal units (like MB or GB) as well as + in binary units (like GiB or TiB). Template: partman-auto-lvm/bad_guided_size Type: error # :sl3: _Description: Invalid input You entered "${INPUT}", which was not recognized as a valid size. Template: partman-auto-lvm/big_guided_size Type: error # :sl3: _Description: ${SIZE} is too big You asked for ${SIZE} to be used for guided partitioning, but the available space is only ${MAXSIZE}. Template: partman-auto-lvm/small_guided_size