summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-16 16:49:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-16 16:49:38 +0000
commitbb6c8a9c0b00b9a8eea7648dc89309769fece915 (patch)
tree5678f605a94a9399385c3f2ac678ad9f26e8f8d2
parent57cb518585e76d8ae16f0acd62b6ed13f17c5fed (diff)
downloaddrakx-backup-do-not-use-bb6c8a9c0b00b9a8eea7648dc89309769fece915.tar
drakx-backup-do-not-use-bb6c8a9c0b00b9a8eea7648dc89309769fece915.tar.gz
drakx-backup-do-not-use-bb6c8a9c0b00b9a8eea7648dc89309769fece915.tar.bz2
drakx-backup-do-not-use-bb6c8a9c0b00b9a8eea7648dc89309769fece915.tar.xz
drakx-backup-do-not-use-bb6c8a9c0b00b9a8eea7648dc89309769fece915.zip
empty partition table means sectors #0 and #1 are zeroes, not simply sector #0
(this gives a chance to raw_lvm_PV which has its magic on sector #1)
-rw-r--r--perl-install/partition_table/empty.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/partition_table/empty.pm b/perl-install/partition_table/empty.pm
index 596088619..ac02b2bb6 100644
--- a/perl-install/partition_table/empty.pm
+++ b/perl-install/partition_table/empty.pm
@@ -25,8 +25,8 @@ sub read($$) {
c::lseek_sector(fileno($F), $sector, 0) or die "reading of partition in sector $sector failed";
#- check magic number
- sysread $F, $tmp, 512 or die "error reading magic number on disk $hd->{device}";
- $tmp eq substr($tmp, 0, 1) x 512 or die "bad magic number on disk $hd->{device}";
+ sysread $F, $tmp, 1024 or die "error reading magic number on disk $hd->{device}";
+ $tmp eq substr($tmp, 0, 1) x 1024 or die "bad magic number on disk $hd->{device}";
partition_table::raw::zero_MBR($hd);