Skip to content

Commit

Permalink
grub2bls
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Nov 6, 2024
1 parent 284e3c6 commit 9e28c76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/lib/bootloader/bls_sections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ def grubenv_path
# @return [String] return default boot as string or "" if not set
# or something goes wrong
def read_default
@default = Yast::Misc.CustomSysconfigRead("default", "",
grubenv_path)
log.info "Default boot entry: #{@default}"
Yast::Misc.CustomSysconfigRead("default", "",
grubenv_path)
end

# write default entry
Expand Down
7 changes: 5 additions & 2 deletions src/lib/bootloader/grub2_widgets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,6 @@ def serial_console_frame
# represent choosing default section to boot
class DefaultSectionWidget < CWM::ComboBox
include Grub2Helper
include Yast::Logger

def initialize
textdomain "bootloader"
Expand Down Expand Up @@ -1122,7 +1121,11 @@ def contents
HSpacing(1)
),
VSpacing(1),
MarginBox(1, 1, DefaultSectionWidget.new),
HBox(
HSpacing(1),
DefaultSectionWidget.new
HStretch()
),
MarginBox(1, 1, grub_password_widget),
VStretch()
)
Expand Down

0 comments on commit 9e28c76

Please sign in to comment.