summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-07-31 09:50:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-07-31 09:50:26 +0000
commitfb13c58c512259986a7b96f415d0b29e3250bace (patch)
tree23fc002705d20e1197c56e8a91f7604b32c8ad2a /perl-install/fsedit.pm
parent90f12cd54fabaad6e2d36af7033e2108fc05babf (diff)
downloaddrakx-fb13c58c512259986a7b96f415d0b29e3250bace.tar
drakx-fb13c58c512259986a7b96f415d0b29e3250bace.tar.gz
drakx-fb13c58c512259986a7b96f415d0b29e3250bace.tar.bz2
drakx-fb13c58c512259986a7b96f415d0b29e3250bace.tar.xz
drakx-fb13c58c512259986a7b96f415d0b29e3250bace.zip
rescuept is no more in util-linux, so
- diskdrake: drop "Rescue partition table" feature (was based on rescuept which has been dropped in util-linux, but was quite bad compared to testdisk anyway) - rescue: remove rescuept (use testdisk instead, which is much nicer)
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm32
1 files changed, 0 insertions, 32 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 3266ec5d7..61951756a 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -562,36 +562,4 @@ sub change_type {
1;
}
-sub rescuept($) {
- my ($hd) = @_;
- my ($ext, @hd);
-
- my $dev = devices::make($hd->{device});
- open(my $F, "rescuept $dev|");
- local $_;
- while (<$F>) {
- my ($st, $si, $id) = /start=\s*(\d+),\s*size=\s*(\d+),\s*Id=\s*(\d+)/ or next;
- my $part = { start => $st, size => $si };
- fs::type::set_pt_type($part, hex($id));
- if (isExtended($part)) {
- $ext = $part;
- } else {
- push @hd, $part;
- }
- }
- close $F or die "rescuept failed";
-
- partition_table::raw::zero_MBR($hd);
- foreach (@hd) {
- my $b = partition_table::verifyInside($_, $ext);
- if ($b) {
- $_->{start}--;
- $_->{size}++;
- }
- local $_->{notFormatted};
-
- partition_table::add($hd, $_, ($b ? 'Extended' : 'Primary'), 1);
- }
-}
-
1;