Skip to content

Commit

Permalink
Cleanup condition for SECURE_BOOT=yes|no
Browse files Browse the repository at this point in the history
The statement serves the purpose for an if/else construction
to become a better read. In addition delete the probably
left-over print statement from the test
  • Loading branch information
schaefi committed Jul 24, 2023
1 parent af6f34e commit f223e61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion kiwi/bootloader/config/grub2.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def _setup_sysconfig_bootloader(self):
sysconfig_bootloader_entries['TRUSTED_BOOT'] = 'yes'
if self.firmware.efi_mode() == 'uefi':
sysconfig_bootloader_entries['SECURE_BOOT'] = 'yes'
if self.firmware.efi_mode() == 'efi':
elif self.firmware.efi_mode() == 'efi':
sysconfig_bootloader_entries['SECURE_BOOT'] = 'no'
if self.cmdline:
sysconfig_bootloader_entries['DEFAULT_APPEND'] = '"{0}"'.format(
Expand Down
1 change: 0 additions & 1 deletion test/unit/bootloader/config/grub2_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,6 @@ def test_setup_sysconfig_bootloader_no_secure(
)
sysconfig_bootloader.__setitem__.reset_mock()
self.bootloader._setup_sysconfig_bootloader()
print(sysconfig_bootloader.__setitem__.call_args_list)
assert sysconfig_bootloader.__setitem__.call_args_list == [
call('DEFAULT_APPEND', '"some-cmdline root=UUID=foo"'),
call(
Expand Down

0 comments on commit f223e61

Please sign in to comment.