Detect mounts by mount root, wait for the touchscreen, and default to eth0/eth1

This commit is contained in:
flamingcow
2026-07-26 15:51:34 -07:00
parent 832a2b42d6
commit 5676b2b581
2 changed files with 72 additions and 9 deletions
+5 -6
View File
@@ -627,8 +627,10 @@ type config struct {
func main() {
var (
aName = flag.String("a", "", "first interface")
bName = flag.String("b", "", "second interface")
// The names the kernel gives the only two ports built into it, since as
// PID 1 there is no udev to rename them and no command line to pass.
aName = flag.String("a", "eth0", "first interface")
bName = flag.String("b", "eth1", "second interface")
sizesArg = flag.String("sizes", "64,128,256,512,1024,1280,1514", "frame sizes in bytes, excluding FCS, cycled per packet")
streams = flag.Int("streams", 7, "independent streams per direction, capped by rx rings; each gets its own ethertype, steered by a flow rule to its own rx queue")
batch = flag.Int("batch", 64, "frames per sendmmsg/recvmmsg call")
@@ -659,15 +661,12 @@ const (
func run(aName, bName, sizesArg string,
nStreams, batch int, nsPerM float64) error {
if aName == "" || bName == "" {
return fmt.Errorf("both -a and -b are required")
}
sizes, err := parseSizes(sizesArg)
if err != nil {
return err
}
if err := reportChecks("MOUNTS", mountFilesystems()); err != nil {
if err := reportChecks("BOOT", bootstrap()); err != nil {
return err
}