Skip to content

Commit

Permalink
Use 'yes' and 'no' for matching efi values
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Nov 18, 2021
1 parent edfd5e0 commit ffa1786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib/autoinstall/clients/ayast_probe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def table(rows)
:hostaddress,
:network,
:domain,
:efi,
:arch,
:karch,
:product,
Expand Down
5 changes: 3 additions & 2 deletions src/modules/AutoInstallRules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def reset
@totaldisk = 0
@hostid = ""
@mac = ""
@efi = false
@efi = "no"
@linux = 0
@others = 0
@xserver = ""
Expand Down Expand Up @@ -484,6 +484,7 @@ def Read
"installed_product_version",
"installed_product",
"domain",
"efi",
"network",
"mac",
"karch",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ffa1786

Please sign in to comment.