[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: PATCH: allow installing grub on the MBR if /boot is on mdraid.



----- "Hans de Goede" <hdegoede redhat com> wrote:

> Hi All,
>

But here we would be loosing the "RAID Device" message.  It would be replaced by "First sector of boot partition", which is not bad thing, but I would still prefer to tell the user that its a "RAID Device".

I would prefer to just add a line inside the if that adds the mbr and then returns.

> diff --git a/fsset.py b/fsset.py
> index c9cd098..b726985 100644
> --- a/fsset.py
> +++ b/fsset.py
> @@ -1522,10 +1522,6 @@ MAILADDR root
>              ret['boot'] = (bootDev.device, N_("EFI System
> Partition"))
>              return ret
>  
>         if bootDev.getName() == "RAIDDevice":
>             ret['boot'] = (bootDev.device, N_("RAID Device"))
=======Add this line to the if:========
              ret['mbr'] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))

>             return ret
>
>          if iutil.getPPCMacGen() == "NewWorld":
>              ret['boot'] = (bootDev.device, N_("Apple Bootstrap"))
>              n = 1
> 

regards

-- 
Joel Andres Granados
Red Hat / Brno Czech Republic


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]