oz icon indicating copy to clipboard operation
oz copied to clipboard

Fix mistake in spec file

Open NeilHanlon opened this issue 3 years ago • 4 comments

  • Fix for running on python3 and building on EL8 or higher
  • replace 'or' keyword with proper '||'

NeilHanlon avatar Jul 05 '22 14:07 NeilHanlon

Hi @nullr0ute - sorry to bother.

One of these changes is to fix a breakage in the spec by my last PR - apologies for that.

I'm happy to split this into multiple PRs if you'd prefer. I did test this on multiple OS types and can confirm the change from self.config.useuefi to self.useuefi in the Guest class does not appear to affect how the Fedora subclass is passing it in. Additionally, it lets RHEL 8 and 9 guests boot with UEFI on x86 without passing in a FedoraConfig class.

Best, Neil

NeilHanlon avatar Jul 08 '22 16:07 NeilHanlon

I'm glad you tested it this time. For reference we've been using this prior to it for some time on Fedora without issues with py3 etc.

nullr0ute avatar Jul 08 '22 16:07 nullr0ute

Instead of commit e227813fa1c7e45d6f44545d609434993fdbce45 please do like this https://github.com/clalancette/oz/pull/304 - that way useuefi can be overriden from config file instead of having to modify get_class() core components or all distro classes.

tobias-urdin avatar Aug 02 '22 09:08 tobias-urdin

@tobias-urdin Great idea. Mine was a hacky fix without reading too much of the code base. I've dropped that commit in favor of your #304.

This can probably be merged as well as yours. I've tested it in my setup and it works as expected.

Thank you!

NeilHanlon avatar Aug 02 '22 14:08 NeilHanlon