From ffa1786d572a008a684b5d43f1b0c54eb48f1aa2 Mon Sep 17 00:00:00 2001 From: Knut Anderssen Date: Thu, 18 Nov 2021 14:42:56 +0000 Subject: [PATCH] Use 'yes' and 'no' for matching efi values --- src/lib/autoinstall/clients/ayast_probe.rb | 1 + src/modules/AutoInstallRules.rb | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/autoinstall/clients/ayast_probe.rb b/src/lib/autoinstall/clients/ayast_probe.rb index bc9e01af1..4d1e5b919 100644 --- a/src/lib/autoinstall/clients/ayast_probe.rb +++ b/src/lib/autoinstall/clients/ayast_probe.rb @@ -75,6 +75,7 @@ def table(rows) :hostaddress, :network, :domain, + :efi, :arch, :karch, :product, diff --git a/src/modules/AutoInstallRules.rb b/src/modules/AutoInstallRules.rb index 5b168661a..942baca11 100644 --- a/src/modules/AutoInstallRules.rb +++ b/src/modules/AutoInstallRules.rb @@ -85,7 +85,7 @@ def reset @totaldisk = 0 @hostid = "" @mac = "" - @efi = false + @efi = "no" @linux = 0 @others = 0 @xserver = "" @@ -484,6 +484,7 @@ def Read "installed_product_version", "installed_product", "domain", + "efi", "network", "mac", "karch", @@ -1086,7 +1087,7 @@ def CreateFile(filename) def AutoInstallRules @mac = getMAC @hostid = getHostid - @efi = boot_efi? + @efi = boot_efi? ? "yes" : "no" log.info "init mac:#{@mac} hostid: #{@hostid} efi: #{@efi}" nil end