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 > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-24-2009, 03:13 PM
Chris Lumens
 
Default Require /boot to be on a GPT or MSDOS disk label on x86 (#540588).

---
platform.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/platform.py b/platform.py
index 2a4b9ea..7b1ff1f 100644
--- a/platform.py
+++ b/platform.py
@@ -220,6 +220,12 @@ class EFI(Platform):
if req.format.type != "efi":
errors.append(_("/boot/efi is not EFI."))

+ disk = req.disk.format.partedDisk
+
+ # Check that we've got a correct disk label.
+ if not disk.type in [parted.diskType["gpt"].name, parted.diskType["msdos"].name]:
+ errors.append(_("%s must have a GPT or MSDOS disk label.") % req.disk.name)
+
return errors

def setDefaultPartitioning(self):
--
1.6.5.1

_______________________________________________
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 10:15 PM.

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