Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Jun 27, 2023
1 parent 2f7d04a commit 8fc6373
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/lib/bootloader/bootloader_base.rb
Expand Up @@ -39,11 +39,11 @@ def prepare
# @param etc_only [Boolean] true on transactional systems
# because /boot is read-only there
def write(etc_only: false)
if !etc_only
# reset eventl. already installed systemd bootloader
systemd_boot = BootloaderFactory.bootloader_by_name("systemd-boot")
systemd_boot&.delete
end
return if etc_only

# reset eventl. already installed systemd bootloader
systemd_boot = BootloaderFactory.bootloader_by_name("systemd-boot")
systemd_boot&.delete
end

# reads configuration from target disk
Expand Down
2 changes: 1 addition & 1 deletion src/lib/bootloader/bootloader_factory.rb
Expand Up @@ -55,7 +55,7 @@ def supported_names
# default means bootloader use what it think is the best
result = BootloaderFactory::SUPPORTED_BOOTLOADERS.clone
if Yast::ProductFeatures.GetBooleanFeature("globals", "enable_systemd_boot") &&
Yast::Arch.x86_64 # only x86_64 is supported
Yast::Arch.x86_64 # only x86_64 is supported
result << SYSTEMDBOOT
end
result << DEFAULT_KEYWORD
Expand Down

0 comments on commit 8fc6373

Please sign in to comment.