mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
f8cb3db775
Non-impactful action, first step for #1421 based on participation in testing of #1398 and prior non-tested PRs. EDIT: last minute readd of x220-maximized boards (x220-maximized and x220-hotp-maximized boards). x220 is still UNTESTED (legacy, manually extracting ifs, me and gbe). EDIT: last minute readd of t440p-maximized boards (t440p-maximized and t440p-hotp-maximized boards). Thanks to @srgrint for lat minute report that t440p and x220 were tested ---- Traces of commands used: ls qemu-linuxboot* leopard* r630* s2600wf* tioga* winterfell* t420* t520* t440p* w530* kgpe* p8z77* x220* x230-maximized-fhd_edp* | grep ":" | awk -F ":" {'print $1'}| while read board; do mv $board/$board.config $board/UNTESTED_$board.config; done ls qemu-linuxboot* leopard* r630* s2600wf* tioga* winterfell* t420* t520* t440p* w530* kgpe* p8z77* x220* x230-maximized-fhd_edp* | grep ":" | awk -F ":" {'print $1'}| while read dir; do mv $dir UNTESTED_$dir; done ls UNTESTED* | grep ":" | awk -F ":" {'print $1'}| awk -F "UNTESTED_" {'print $2'} | while read line; do sed 's/'"$line"'/UNTESTED_'"$line"'/g' ../.circleci/config.yml -i ; done quick fix of circleci: sed -i 's/UNTESTED_UNTESTED/UNTESTED/g' ../.circleci/config.yml sed -i 's/UNTESTED_UNTESTED/UNTESTED/g' ../.circleci/config.yml sed -i 's/UNTESTED_UNTESTED/UNTESTED/g' ../.circleci/config.yml Modify p8z77-m_pro-tpm1 hotp board config to include to their maximized counterpart
45 lines
906 B
Go
45 lines
906 B
Go
// Copyright 2012-2017 the u-root Authors. All rights reserved
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// This is winterfell init script
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
"os/exec"
|
|
"strings"
|
|
)
|
|
|
|
var (
|
|
commands = []string{
|
|
"/bbin/insmod /lib/modules/nvme-core.ko",
|
|
"/bbin/insmod /lib/modules/nvme.ko",
|
|
"/bbin/insmod /lib/modules/libata.ko",
|
|
"/bbin/insmod /lib/modules/libahci.ko",
|
|
"/bbin/insmod /lib/modules/ahci.ko",
|
|
"/bbin/rsdp",
|
|
}
|
|
)
|
|
|
|
func main() {
|
|
for _, line := range commands {
|
|
log.Printf("Executing Command: %v", line)
|
|
cmdSplit := strings.Split(line, " ")
|
|
if len(cmdSplit) == 0 {
|
|
continue
|
|
}
|
|
|
|
cmd := exec.Command(cmdSplit[0], cmdSplit[1:]...)
|
|
cmd.Stdin = os.Stdin
|
|
cmd.Stderr = os.Stderr
|
|
cmd.Stdout = os.Stdout
|
|
if err := cmd.Run(); err != nil {
|
|
log.Print(err)
|
|
}
|
|
|
|
}
|
|
log.Print("Uinit Done!")
|
|
}
|