From 41626d3274b9ecec12140493770ef54f3c4124c8 Mon Sep 17 00:00:00 2001 From: Ancor Gonzalez Sosa Date: Thu, 21 Nov 2024 13:03:58 +0000 Subject: [PATCH] WIP: More consistent boot.device using alias --- service/lib/agama/storage/config.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/lib/agama/storage/config.rb b/service/lib/agama/storage/config.rb index 928c787b30..2f0e251e47 100644 --- a/service/lib/agama/storage/config.rb +++ b/service/lib/agama/storage/config.rb @@ -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