Skip to content

Commit

Permalink
using kernel parameters in systemd-boot
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Apr 25, 2024
1 parent d1471c9 commit db8894b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/installation/dialogs/security.rb
Expand Up @@ -119,9 +119,16 @@ def polkit_frame
end

def cpu_frame
widget = nil
current_bl = ::Bootloader::BootloaderFactory.current
if current_bl.is_a?(::Bootloader::SystemdBoot)
widget = ::Bootloader::SystemdBootWidget::SdCpuMitigationsWidget.new
else
widget = ::Bootloader::Grub2Widget::Grub2CpuMitigationsWidget.new
end
frame(
_("CPU"),
::Bootloader::Grub2Widget::CpuMitigationsWidget.new
widget
)
end

Expand Down

0 comments on commit db8894b

Please sign in to comment.