Skip to content

Commit a1830a9

Browse files
committed
Check for Giga Computing manufacturer
1 parent 0d635a1 commit a1830a9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pixiecore/http.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ func ipxeScript(mach Machine, spec *Spec, serverHost string) ([]byte, error) {
199199
b.WriteString("set console ttyS1\n")
200200
b.WriteString("set sp:hex 20 && set sp ${sp:string}\n")
201201
b.WriteString("iseq ${manufacturer} Dell${sp}Inc. && set console ttyS0 ||\n")
202+
b.WriteString("iseq ${manufacturer} Giga${sp}Computing && set console ttyS0 ||\n")
202203
u := fmt.Sprintf(urlTemplate, url.QueryEscape(string(spec.Kernel)), "kernel", url.QueryEscape(mach.MAC.String()))
203204
fmt.Fprintf(&b, "kernel --name kernel %s\n", u)
204205
for i, initrd := range spec.Initrd {

pixiecore/http_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func TestIpxe(t *testing.T) {
6969
set console ttyS1
7070
set sp:hex 20 && set sp ${sp:string}
7171
iseq ${manufacturer} Dell${sp}Inc. && set console ttyS0 ||
72+
iseq ${manufacturer} Giga${sp}Computing && set console ttyS0 ||
7273
kernel --name kernel http://localhost:1234/_/file?name=k-01%3A02%3A03%3A04%3A05%3A06-0&type=kernel&mac=01%3A02%3A03%3A04%3A05%3A06
7374
initrd --name initrd0 http://localhost:1234/_/file?name=i1-01%3A02%3A03%3A04%3A05%3A06-0&type=initrd&mac=01%3A02%3A03%3A04%3A05%3A06
7475
initrd --name initrd1 http://localhost:1234/_/file?name=i2-01%3A02%3A03%3A04%3A05%3A06-0&type=initrd&mac=01%3A02%3A03%3A04%3A05%3A06
@@ -97,6 +98,7 @@ boot kernel initrd=initrd0 initrd=initrd1 console=${console},115200n8 thing=http
9798
set console ttyS1
9899
set sp:hex 20 && set sp ${sp:string}
99100
iseq ${manufacturer} Dell${sp}Inc. && set console ttyS0 ||
101+
iseq ${manufacturer} Giga${sp}Computing && set console ttyS0 ||
100102
kernel --name kernel http://localhost:1234/_/file?name=k-fe%3Afe%3Afe%3Afe%3Afe%3Afe-1&type=kernel&mac=fe%3Afe%3Afe%3Afe%3Afe%3Afe
101103
initrd --name initrd0 http://localhost:1234/_/file?name=i1-fe%3Afe%3Afe%3Afe%3Afe%3Afe-1&type=initrd&mac=fe%3Afe%3Afe%3Afe%3Afe%3Afe
102104
initrd --name initrd1 http://localhost:1234/_/file?name=i2-fe%3Afe%3Afe%3Afe%3Afe%3Afe-1&type=initrd&mac=fe%3Afe%3Afe%3Afe%3Afe%3Afe

0 commit comments

Comments
 (0)