Skip to content

Commit

Permalink
using sdbootutil in systemd-boot
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Nov 26, 2024
1 parent ea93f6a commit 011839c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/lib/bootloader/systemdboot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def cpu_mitigations=(value)
def read
super

read_menu_timeout
self.menu_timeout = Bls.menu_timeout
self.secure_boot = Systeminfo.secure_boot_active?

lines = ""
Expand Down Expand Up @@ -202,15 +202,5 @@ def write_kernel_parameter
end
end

def read_menu_timeout
config = CFA::SystemdBoot.load
return unless config.menu_timeout

self.menu_timeout = if config.menu_timeout == "menu-force"
-1
else
config.menu_timeout.to_i
end
end
end
end

0 comments on commit 011839c

Please sign in to comment.