From 07176b363fe8b3cb3c885f378c93748ef749dcfb Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Thu, 10 Mar 2005 17:59:25 +0000 Subject: Diskdrake mods for XBox (thks Pixel) --- perl-install/partition_table/raw.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl-install/partition_table') diff --git a/perl-install/partition_table/raw.pm b/perl-install/partition_table/raw.pm index 28f0fc797..db1d40584 100644 --- a/perl-install/partition_table/raw.pm +++ b/perl-install/partition_table/raw.pm @@ -201,6 +201,11 @@ sub zero_MBR { bless $hd, "partition_table::$type"; $hd->{primary} = $hd->clear_raw; delete $hd->{extended}; + if (is_xbox()) { + my $part = { start => 1, size => 15632048, pt_type => 0x0bf, isFormatted => 1 }; + partition_table::dos::compute_CHS($hd, $part); + $hd->{primary}{raw}[0] = $part; + } } sub zero_MBR_and_dirty { -- cgit v1.2.1