FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 12-11-2008, 10:42 AM
Hans de Goede
 
Default PATCH: mdraid1-allow-bootloader-on-mbr

Hi All,

Basicly the same patch I've just committed for master. This patch allows
installing the bootloader on the mbr when using mdraid1, as requested in bug
217176.


It also contains some special handling of this case in bootloader.py, to make
sure our default behaviour does not change.


Regards,

Hans
diff --git a/bootloader.py b/bootloader.py
index 486cb64..d88da31 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -85,7 +85,8 @@ def bootloaderSetupChoices(dispatch, bl, fsset, diskSet, dir):
log("MBR not suitable as boot device; installing to partition")
bl.defaultDevice = "boot"
bl.setDevice(choices[bl.defaultDevice][0])
- elif choices and choices.has_key("mbr"):
+ elif choices and choices.has_key("mbr") and not
+ (choices.has_key("boot") and choices["boot"][1] == N_("RAID Device")):
bl.setDevice(choices["mbr"][0])
elif choices and choices.has_key("boot"):
bl.setDevice(choices["boot"][0])
diff --git a/fsset.py b/fsset.py
index 22fd824..cee9ef7 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1340,6 +1340,11 @@ MAILADDR root

if bootDev.getName() == "RAIDDevice":
ret['boot'] = (bootDev.device, N_("RAID Device"))
+ try:
+ # we won't have this on zFCP-only zSeries systems
+ ret['mbr'] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
+ except:
+ pass
return ret

if iutil.getPPCMacGen() == "NewWorld":
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-15-2008, 02:05 PM
Joel Granados
 
Default PATCH: mdraid1-allow-bootloader-on-mbr

Looks good to me.
----- "Hans de Goede" <hdegoede@redhat.com> wrote:

> Hi All,
>
> Basicly the same patch I've just committed for master. This patch
> allows
> installing the bootloader on the mbr when using mdraid1, as requested
> in bug
> 217176.
>
> It also contains some special handling of this case in bootloader.py,
> to make
> sure our default behaviour does not change.
>
> Regards,
>
> Hans
>
> diff --git a/bootloader.py b/bootloader.py
> index 486cb64..d88da31 100644
> --- a/bootloader.py
> +++ b/bootloader.py
> @@ -85,7 +85,8 @@ def bootloaderSetupChoices(dispatch, bl, fsset,
> diskSet, dir):
> log("MBR not suitable as boot device; installing to
> partition")
> bl.defaultDevice = "boot"
> bl.setDevice(choices[bl.defaultDevice][0])
> - elif choices and choices.has_key("mbr"):
> + elif choices and choices.has_key("mbr") and not
> + (choices.has_key("boot") and choices["boot"][1] == N_("RAID
> Device")):
> bl.setDevice(choices["mbr"][0])
> elif choices and choices.has_key("boot"):
> bl.setDevice(choices["boot"][0])
> diff --git a/fsset.py b/fsset.py
> index 22fd824..cee9ef7 100644
> --- a/fsset.py
> +++ b/fsset.py
> @@ -1340,6 +1340,11 @@ MAILADDR root
>
> if bootDev.getName() == "RAIDDevice":
> ret['boot'] = (bootDev.device, N_("RAID Device"))
> + try:
> + # we won't have this on zFCP-only zSeries systems
> + ret['mbr'] = (bl.drivelist[0], N_("Master Boot Record
> (MBR)"))
> + except:
> + pass
> return ret
>
> if iutil.getPPCMacGen() == "NewWorld":
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

--
Joel Andres Granados
Red Hat / Brno Czech Republic

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:49 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org