Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
cobbler.208
fix-textmode-for-SUSE.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-textmode-for-SUSE.dif of Package cobbler.208
Index: cobbler-2.4.2/cobbler/action_buildiso.py =================================================================== --- cobbler-2.4.2.orig/cobbler/action_buildiso.py +++ cobbler-2.4.2/cobbler/action_buildiso.py @@ -187,6 +187,8 @@ class BuildIso: if data.has_key("proxy") and data["proxy"] != "": append_line += " mirror/http/proxy=%s" % data["proxy"] append_line += self.add_remaining_kopts(data["kernel_options"]) + if dist.breed == "suse": + append_line = append_line.replace("text","textmode=1") cfg.write(append_line) cfg.write("\nMENU SEPARATOR\n") @@ -394,7 +396,7 @@ class BuildIso: append_line += " netcfg/get_gateway=%s" % my_gw if exclude_dns is None or my_dns is not None: - if dist.breed == "suse": + if dist.breed == "suse" and type(my_dns) == list and len(my_dns) >= 1: append_line += " nameserver=%s" % my_dns[0] if dist.breed == "redhat": if type(my_dns) == list: @@ -406,6 +408,8 @@ class BuildIso: # add remaining kernel_options to append_line append_line += self.add_remaining_kopts(data["kernel_options"]) + if dist.breed == "suse": + append_line = append_line.replace("text","textmode=1") cfg.write(append_line) cfg.write("\n") @@ -474,6 +478,8 @@ class BuildIso: # add remaining kernel_options to append_line append_line += self.add_remaining_kopts(data["kernel_options"]) + if dist.breed == "suse": + append_line = append_line.replace("text","textmode=1") cfg.write(append_line) if descendant.COLLECTION_TYPE == 'profile': Index: cobbler-2.4.2/cobbler/pxegen.py =================================================================== --- cobbler-2.4.2.orig/cobbler/pxegen.py +++ cobbler-2.4.2/cobbler/pxegen.py @@ -710,6 +710,9 @@ class PXEGen: append_line = append_line.replace('ksdevice=bootif','ksdevice=${net0/mac}') elif distro.breed == "suse": append_line = "%s autoyast=%s" % (append_line, kickstart_path) + + # rework kernel options for suse distro + append_line = append_line.replace("text","textmode=1") elif distro.breed == "debian" or distro.breed == "ubuntu": append_line = "%s auto-install/enable=true priority=critical url=%s" % (append_line, kickstart_path) if management_interface:
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