Skip to content

Commit

Permalink
WIP: More consistent boot.device using alias
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Nov 21, 2024
1 parent d0c62b5 commit 41626d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/lib/agama/storage/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ def logical_volumes
# @return [String, nil] nil if no disk is explicitly chosen
def explicit_boot_device
return nil unless boot.configure?
return nil unless boot.device

boot.device
boot_drive = drives.find { |d| d.alias == boot.device }
boot_drive&.found_device&.name
end

# Device that seems to be expected to be used for booting, according to the drive definitions
Expand Down

0 comments on commit 41626d3

Please sign in to comment.