[d-i-commits] r32147 - in trunk/packages/partman/partman-auto: . debian

Frans Pop fjp at costa.debian.org
Wed Nov 16 00:04:21 UTC 2005


Author: fjp
Date: 2005-11-16 00:04:18 +0000 (Wed, 16 Nov 2005)
New Revision: 32147

Modified:
   trunk/packages/partman/partman-auto/autopartition
   trunk/packages/partman/partman-auto/debian/changelog
Log:
Use gpt instead of msdos disklabel for disks larger than 2TB

Modified: trunk/packages/partman/partman-auto/autopartition
===================================================================
--- trunk/packages/partman/partman-auto/autopartition	2005-11-16 00:03:33 UTC (rev 32146)
+++ trunk/packages/partman/partman-auto/autopartition	2005-11-16 00:04:18 UTC (rev 32147)
@@ -26,6 +26,16 @@
 		label_type=msdos # most widely used
 	fi
 	
+	# Use gpt instead of msdos disklabel for disks larger than 2TB
+	if expr "$types" : ".*gpt.*" >/dev/null; then
+		if [ "$label_type" = msdos ] ; then
+			disksize=$(cat size)
+			if $(longint_le $(human2longint 2TB) $disksize) ; then
+				label_type=gpt
+			fi
+		fi
+	fi
+
 	if [ "$label_type" = sun ]; then
 		db_input critical partman/confirm_write_new_label
 		db_go || exit 0

Modified: trunk/packages/partman/partman-auto/debian/changelog
===================================================================
--- trunk/packages/partman/partman-auto/debian/changelog	2005-11-16 00:03:33 UTC (rev 32146)
+++ trunk/packages/partman/partman-auto/debian/changelog	2005-11-16 00:04:18 UTC (rev 32147)
@@ -11,8 +11,11 @@
   [ Sven Luther ]
   * Adapted to chrp_rs6k -> chrp_ibm transition.
 
- -- Sven Luther <luther at debian.org>  Mon, 14 Nov 2005 14:01:35 +0000
+  [ Frans Pop ]
+  * Use gpt instead of msdos disklabel for disks larger than 2TB.
 
+ -- Frans Pop <fjp at debian.org>  Wed, 16 Nov 2005 00:58:34 +0100
+
 partman-auto (44) unstable; urgency=low
 
   [ Updated translations ]




More information about the d-i-commits mailing list