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

Bug#739006: Switch to mkdosfs instead of libparted



Package: partman-efi
Tags: patch

The attached patch switches partman-efi to use mkdosfs instead of
libparted to format the efi system partition, in preparation for the
parted3 transition.

diff -Nru partman-efi-39/commit.d/format_efi partman-efi-40/commit.d/format_efi
--- partman-efi-39/commit.d/format_efi	2012-09-20 10:45:15.000000000 -0400
+++ partman-efi-40/commit.d/format_efi	2014-02-14 15:40:50.000000000 -0500
@@ -54,10 +54,13 @@
 			db_subst $template PARTITION "$num"
 			db_subst $template DEVICE $(humandev $(cat device))
 			name_progress_bar $template
-			open_dialog CREATE_FILE_SYSTEM $id $new_efi_fs
-			read_line status
-			close_dialog
-			sync
+			if log-output -t partman --pass-stdout \
+			    mkfs.vfat -F 32 $device >/dev/null; then
+			    status=OK
+			else
+			    status=failed
+			fi
+			db_progress STOP    
 
 			if [ "$status" != OK ]; then
 				db_subst partman-basicfilesystems/create_failed TYPE efi
diff -Nru partman-efi-39/debian/changelog partman-efi-40/debian/changelog
--- partman-efi-39/debian/changelog	2013-09-08 10:29:40.000000000 -0400
+++ partman-efi-40/debian/changelog	2014-02-14 15:45:19.000000000 -0500
@@ -1,3 +1,9 @@
+partman-efi (40) unstable; urgency=low
+
+  * Switch to using mkdosfs instead of libparted
+
+ -- Phillip Susi <psusi@ubuntu.com>  Fri, 14 Feb 2014 15:44:22 -0500
+
 partman-efi (39) unstable; urgency=low
 
   [ Updated translations ]
diff -Nru partman-efi-39/debian/control partman-efi-40/debian/control
--- partman-efi-39/debian/control	2013-07-13 04:36:55.000000000 -0400
+++ partman-efi-40/debian/control	2014-02-14 15:46:30.000000000 -0500
@@ -10,5 +10,5 @@
 Package: partman-efi
 Package-Type: udeb
 Architecture: i386 ia64 amd64
-Depends: partman-base (>= 114), efi-modules, ${misc:Depends}
+Depends: partman-base (>= 114), efi-modules, dosfstools-udeb, ${misc:Depends}
 Description: Add to partman support for EFI boot partitions

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: