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

Bug#738864: Remove copy operation for parted3 transition



Package: partman-partitioning
Tags: patch

This patch removes the copy operation from the partman menu in
preparation for the parted3 transition, which no longer supports this.

diff -Nru partman-partitioning-99/active_partition/copy/choices partman-partitioning-100/active_partition/copy/choices
--- partman-partitioning-99/active_partition/copy/choices	2011-01-19 00:05:10.000000000 -0500
+++ partman-partitioning-100/active_partition/copy/choices	1969-12-31 19:00:00.000000000 -0500
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-. /usr/share/debconf/confmodule
-
-db_metaget partman-partitioning/text/copy description
-printf "copy\t${RET}\n"
-
diff -Nru partman-partitioning-99/active_partition/copy/do_option partman-partitioning-100/active_partition/copy/do_option
--- partman-partitioning-99/active_partition/copy/do_option	2011-01-19 00:05:10.000000000 -0500
+++ partman-partitioning-100/active_partition/copy/do_option	1969-12-31 19:00:00.000000000 -0500
@@ -1,59 +0,0 @@
-#!/bin/sh
-
-. /lib/partman/lib/base.sh
-. /lib/partman/lib/commit.sh
-
-dev=$2
-id=$3
-
-cd $dev
-
-db_set partman-partitioning/confirm_copy false
-db_input critical partman-partitioning/confirm_copy || true
-db_go || exit 0
-db_get partman-partitioning/confirm_copy
-
-[ "$RET" = true ] || exit 0
-
-ask_for_source () {
-	local noninteractive
-	noninteractive=true
-	while true; do
-		source_dev=''
-		source_id=''
-		while [ ! "$source_id" ]; do
-			choices=$(partition_tree_choices)
-			debconf_select critical partman-partitioning/source_partition "$choices" asdfasdfasdf
-			case $? in
-			    1)
-				$noninteractive
-				;;
-			    255)
-				return 1
-				;;
-			esac
-			noninteractive='return 1'
-			source_dev=${RET%//*}
-			source_id=${RET#*//}
-		done
-		source_dev=${source_dev##*/}
-		if perform_copying; then break; fi
-	done
-	return 0
-}
-
-perform_copying () {
-	commit_changes partman-partitioning/copy_commit_failed || exit 0
-
-	name_progress_bar partman-partitioning/progress_copying
-	open_dialog COPY_PARTITION $id $source_dev $source_id
-	close_dialog
-
-	for s in /lib/partman/init.d/*; do
-		if [ -x $s ]; then
-			$s || exit 0
-		fi
-	done
-}
-
-ask_for_source
diff -Nru partman-partitioning-99/active_partition/_numbers partman-partitioning-100/active_partition/_numbers
--- partman-partitioning-99/active_partition/_numbers	2011-01-19 00:05:10.000000000 -0500
+++ partman-partitioning-100/active_partition/_numbers	2014-02-13 10:02:35.000000000 -0500
@@ -2,5 +2,4 @@
 65 toggle_bootable
 66 change_flags
 80 resize
-83 copy
 87 delete
diff -Nru partman-partitioning-99/debian/changelog partman-partitioning-100/debian/changelog
--- partman-partitioning-99/debian/changelog	2014-01-05 09:33:40.000000000 -0500
+++ partman-partitioning-100/debian/changelog	2014-02-13 10:04:13.000000000 -0500
@@ -1,3 +1,9 @@
+partman-partitioning (100) unstable; urgency=low
+
+  * Remove partition copy operation for libparted 3 transition
+
+ -- Phillip Susi <psusi@ubuntu.com>  Thu, 13 Feb 2014 10:03:14 -0500
+
 partman-partitioning (99) unstable; urgency=low
 
   [ Updated translations ]
diff -Nru partman-partitioning-99/debian/partman-partitioning.templates partman-partitioning-100/debian/partman-partitioning.templates
--- partman-partitioning-99/debian/partman-partitioning.templates	2012-03-28 21:01:36.000000000 -0400
+++ partman-partitioning-100/debian/partman-partitioning.templates	2014-02-13 10:00:14.000000000 -0500
@@ -13,33 +13,6 @@
 # :sl1:
 _Description: Computing the new state of the partition table...
 
-Template: partman-partitioning/confirm_copy
-Type: boolean
-# :sl2:
-_Description: Write previous changes to disk and continue?
- Before you can select a partition to copy, any previous changes have to be
- written to disk.
- .
- You cannot undo this operation.
- .
- Please note that the copy operation may take a long time.
-
-Template: partman-partitioning/source_partition
-Type: select
-Choices-C: ${CHOICES}
-Choices: ${DESCRIPTIONS}
-# :sl2:
-_Description: Source partition:
- Please choose the partition which contains the data you want to copy.
-
-Template: partman-partitioning/copy_commit_failed
-Type: error
-# :sl2:
-_Description: Copy operation failure
- An error occurred while writing the changes to the storage devices.
- .
- The copy operation has been aborted.
-
 Template: partman-partitioning/impossible_resize
 Type: error
 # :sl2:
@@ -251,11 +224,6 @@
 # :sl2:
 _Description: Resize the partition (currently ${SIZE})
 
-Template: partman-partitioning/text/copy
-Type: text
-# :sl2:
-_Description: Copy data from another partition
-
 Template: partman-partitioning/text/delete
 Type: text
 # :sl2:

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: