diff --git a/mxgrub/mxgrub b/mxgrub/mxgrub index d784dd2..0120294 100755 --- a/mxgrub/mxgrub +++ b/mxgrub/mxgrub @@ -283,13 +283,15 @@ sub cmd_list { $mbr_type eq 'GRUB' or warn "WARNING: $root_disk MBR type is $mbr_type\n"; - is_VX50() and warn "WARNING: This is a VX50, I refuse to install grub here\n"; + is_VX50() && $mbr_type ne 'GRUB' and warn "WARNING: This is a VX50, I refuse to install grub here\n"; } sub cmd_install { my ($label)=@_; # + my ($root_device,$root_disk)=root_dev(); + my $mbr_type=check_mbr($root_disk); - is_VX50() and die "This is a VX50, I refuse to install grub here\n"; + is_VX50() && $mbr_type ne 'GRUB' and die "This is a VX50, I refuse to install grub here\n"; if ($label eq 'default') { scan_mariux(0); @@ -301,8 +303,6 @@ sub cmd_install { update_grub_cfg(); - my ($root_device,$root_disk)=root_dev(); - my $mbr_type=check_mbr($root_disk); if ($mbr_type ne 'GRUB') { sys 'grub-install',$root_disk and exit 1; }