Skip to content

Commit

Permalink
grub2bls
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Nov 8, 2024
1 parent 8f810a4 commit 194bf7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/bootloader/bls_sections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def grubenv_path
str = Yast::Misc.CustomSysconfigRead("ID_LIKE", "openSUSE",
OS_RELEASE_PATH)
os = str.split(" ").first
return Installation::destdir + "/boot/efi/EFI/" + os + "/grubenv"
return File.join(Yast::Installation.destdir,
"/boot/efi/EFI/", os, "/grubenv")
end

# @return [String] return default boot as string or "" if not set
Expand Down
3 changes: 2 additions & 1 deletion src/lib/bootloader/grub2bls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ def grubenv_path
str = Yast::Misc.CustomSysconfigRead("ID_LIKE", "openSUSE",
OS_RELEASE_PATH)
os = str.split(" ").first
return Installation::destdir + Installation::destdir + "/boot/efi/EFI/" + os + "/grubenv"
return File.join(Yast::Installation.destdir,
"/boot/efi/EFI/", os, "/grubenv")
end

# @return [String] return default boot as string or "" if not set
Expand Down

0 comments on commit 194bf7c

Please sign in to comment.