Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Apr 24, 2023
1 parent 73f6270 commit 9816634
Show file tree
Hide file tree
Showing 4 changed files with 1,112 additions and 955 deletions.
15 changes: 10 additions & 5 deletions src/lib/bootloader/config_dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require "bootloader/bootloader_factory"
require "bootloader/none_bootloader"
require "bootloader/grub2_widgets"
require "bootloader/systemdboot_widgets"

Yast.import "BootStorage"
Yast.import "CWMTab"
Expand Down Expand Up @@ -88,11 +89,15 @@ def guarded_run
def contents
return VBox(LoaderTypeWidget.new) if BootloaderFactory.current.is_a?(NoneBootloader)

return VBox(LoaderTypeWidget.new) if BootloaderFactory.current.is_a?(SystemdBoot)

boot_code_tab = BootCodeTab.new
kernel_tab = KernelTab.new
bootloader_tab = BootloaderTab.new
if BootloaderFactory.current.is_a?(SystemdBoot)
boot_code_tab = ::Bootloader::SystemdBootWidget::BootCodeTab.new
kernel_tab = ::Bootloader::SystemdBootWidget::KernelTab.new
bootloader_tab = ::Bootloader::SystemdBootWidget::BootloaderTab.new
else
boot_code_tab = ::Bootloader::Grub2Widget::BootCodeTab.new
kernel_tab = ::Bootloader::Grub2Widget::KernelTab.new
bootloader_tab = ::Bootloader::Grub2Widget::BootloaderTab.new
end
case @initial_tab
when :boot_code then boot_code_tab.initial = true
when :kernel then kernel_tab.initial = true
Expand Down
Loading

0 comments on commit 9816634

Please sign in to comment.