[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#570410: partman-base: Please default to GB



Package: partman-base
Version: 137
Severity: wishlist
Tags: patch

if one partitions and neglects to add a suffix partman falls back
to use megabytes. noticed on a goofed installed where debootstrap
failed due to full disk. better default to gigabytes these days.

said root had 34 MB instead of 34 GB.

Signed-off-by: maximilian attems <max@stro.at>

diff --git a/packages/partman/partman-base/lib/base.sh b/packages/partman/partman-base/lib/base.sh
index bce0e65..4cce227 100644
--- a/packages/partman/partman-base/lib/base.sh
+++ b/packages/partman/partman-base/lib/base.sh
@@ -363,8 +363,8 @@ human2longint () {
 		# bytes
 		#longint=${longint%????}
 		#[ "$longint" ] || longint=0
-		# megabytes
-		longint=${longint}00
+		# gigabytes
+		longint=${longint}00000
 		;;
 	esac
 	echo $longint

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



Reply to: