summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2005-03-10 17:59:25 +0000
committerStew Benedict <stewb@mandriva.org>2005-03-10 17:59:25 +0000
commit07176b363fe8b3cb3c885f378c93748ef749dcfb (patch)
tree43f6030b7fbbff156f6c3c715a7337e172842a5b /perl-install/diskdrake
parent3fb415deb585958c2e8f5cf86cfafc899fd9153a (diff)
downloaddrakx-07176b363fe8b3cb3c885f378c93748ef749dcfb.tar
drakx-07176b363fe8b3cb3c885f378c93748ef749dcfb.tar.gz
drakx-07176b363fe8b3cb3c885f378c93748ef749dcfb.tar.bz2
drakx-07176b363fe8b3cb3c885f378c93748ef749dcfb.tar.xz
drakx-07176b363fe8b3cb3c885f378c93748ef749dcfb.zip
Diskdrake mods for XBox (thks Pixel)
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r--perl-install/diskdrake/interactive.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index ef78889a1..bead96915 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -316,7 +316,7 @@ sub hd_possible_actions_interactive {
sub Clear_all {
my ($in, $hd, $all_hds) = @_;
-
+ return if is_xbox(); #- do not let them wipe the OS
my @parts = partition_table::get_normal_parts($hd);
foreach (@parts) {
RemoveFromLVM($in, $hd, $_, $all_hds) if isPartOfLVM($_);
@@ -457,6 +457,9 @@ sub part_possible_actions {
);
if (isEmpty($part)) {
if_(!$hd->{readonly}, N_("Create"));
+ } elsif ($part->{pt_type} == 0xbf) {
+ #- XBox OS partitions, do not allow anything
+ return;
} else {
grep {
my $cond = $actions{$_};