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

 
 
LinkBack Thread Tools
 
Old 05-04-2010, 03:52 PM
Hans de Goede
 
Default Fix hasWindows() to actually work as advertised

---
bootloader.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/bootloader.py b/bootloader.py
index e2b06a8..30912e7 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -232,9 +232,12 @@ def writeBootloader(anaconda):
dosync()

def hasWindows(bl):
+ if not booty.doesDualBoot():
+ return False
+
foundWindows = False
- for (k,v) in bl.images.getImages().iteritems():
- if v[0].lower() == 'other' and v[2] in bootloaderInfo.dosFilesystems:
+ for (dev, type) in bl.images.availableBootDevices(bl.storage):
+ if type in booty.dosFilesystems:
foundWindows = True
break

--
1.7.0.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 02:40 AM.

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