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 > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 07-14-2011, 05:59 PM
David Lehman
 
Default Use os-prober to generate GRUB2 dual-boot menu entries.

---
pyanaconda/bootloader.py | 2 +-
pyanaconda/iw/bootloader_main_gui.py | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 418e0fd..6df0107 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1385,7 +1385,7 @@ class GRUB2(GRUB):

"""
name = "GRUB2"
- packages = ["grub2", "gettext"]
+ packages = ["grub2", "gettext", "os-prober"]
_config_file = "grub.cfg"
_config_dir = "grub2"
config_file_mode = 0600
diff --git a/pyanaconda/iw/bootloader_main_gui.py b/pyanaconda/iw/bootloader_main_gui.py
index aa20161..ac74342 100644
--- a/pyanaconda/iw/bootloader_main_gui.py
+++ b/pyanaconda/iw/bootloader_main_gui.py
@@ -203,7 +203,10 @@ class MainBootloaderWindow(InstallWindow):

# configure the systems available to boot from the boot loader
self.oslist = OSBootWidget(anaconda, self.parent)
- thebox.pack_end(self.oslist.getWidget(), True)
+ if not self.bl.name == "GRUB2":
+ # with grub2 we use os-prober to generate menu entries for all
+ # other OS it finds without user interaction
+ thebox.pack_end(self.oslist.getWidget(), True)

self.bootloaderChanged()
return thebox
--
1.7.3.4

_______________________________________________
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 01:40 AM.

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