[PATCH 2/3] Use os-prober to generate GRUB2 dual-boot menu entries.

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

 



---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux