Bug#394428: partman-lvm should be more tolerant to the user input
Package: partman-lvm
Severity: minor
Tags: patch
When partman-lvm asks for a size of the new logical volume, currently
it does not allow me to enter space between the value and the units.
Please consider applying the attached patch to fix this.
--
Miroslav Kure
Index: packages/partman/partman-lvm/lvm_tools.sh
===================================================================
--- packages/partman/partman-lvm/lvm_tools.sh (revision 41954)
+++ packages/partman/partman-lvm/lvm_tools.sh (working copy)
@@ -13,7 +13,7 @@
# Convert common terms for disk sizes into something LVM understands.
# e.g. "200 gb" -> "200G"
lvm_size_from_human() {
- echo "$1" | tr "kmgt" "KMGT" | sed -e 's/[:space:]//g;s/\([KMGT]\)[bB]/\1/'
+ echo "$1" | tr "kmgt" "KMGT" | sed -e 's/[[:space:]]//g;s/\([KMGT]\)[bB]/\1/'
}
# Convert LVM disk sizes into something human readable.
Reply to: