Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
koan.13374
use_grub2_on_suse.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File use_grub2_on_suse.diff of Package koan.13374
Index: koan-2.9.0/koan/app.py =================================================================== --- koan-2.9.0.orig/koan/app.py +++ koan-2.9.0/koan/app.py @@ -1127,6 +1127,10 @@ class Koan: if not os.path.exists("/usr/sbin/update-grub"): raise InfoException("grub2 is not installed") use_grub2 = True + elif (make == "suse"): + if not os.path.exists("/usr/sbin/grub2-install"): + raise InfoException("grub2 is not installed") + use_grub2 = True else: if not os.path.exists("/sbin/grubby"): raise InfoException("grubby is not installed") @@ -1252,10 +1256,13 @@ class Koan: # Set paths for Ubuntu/Debian # TODO: Add support for other distros when they ship grub2 - if make in ['ubuntu', 'debian']: + if make in ['ubuntu', 'debian', 'suse']: grub_file = "/etc/grub.d/42_koan" grub_default_file = "/etc/default/grub" - cmd = ["update-grub"] + if make in ['suse']: + cmd = ['/sbin/update-bootloader', '--refresh'] + else: + cmd = ["update-grub"] default_cmd = [ 'sed', '-i',
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor