aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/earlyinit/uevent.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-27 17:58:01 +0900
committerOphestra <cat@gensokyo.uk>2026-05-27 17:58:01 +0900
commitb18f40d974ffc33f3703d46bfe42d6fa2f844a01 (patch)
tree1b713d0d797ab99da540d772255009775fe3c1c3 /cmd/earlyinit/uevent.go
parent12a606105124d1ef3133594afb9e6e0bc2e0ad33 (diff)
internal/kobject: pass action kind for range
Useful for handling most uevents. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/earlyinit/uevent.go')
-rw-r--r--cmd/earlyinit/uevent.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/earlyinit/uevent.go b/cmd/earlyinit/uevent.go
index 0ab134cf..64f548ba 100644
--- a/cmd/earlyinit/uevent.go
+++ b/cmd/earlyinit/uevent.go
@@ -2,12 +2,12 @@ package main
import (
"context"
- "log"
"time"
"hakurei.app/fhs"
"hakurei.app/internal/report"
"hakurei.app/internal/uevent"
+ "hakurei.app/message"
)
// newRejectColdboot returns a function to be called on every subsequent pending
@@ -56,6 +56,7 @@ func newRejectColdboot() func() bool {
// consume continuously consumes events from conn with retries.
func consume(
ctx context.Context,
+ msg message.Msg,
r *report.Reporter,
conn *uevent.Conn,
uuid uevent.UUID,
@@ -67,7 +68,7 @@ func consume(
coldboot := true
retry:
if dispatchErr := conn.Consume(ctx, fhs.Sys, &uuid, events, coldboot, func(path string) {
- log.Println("coldboot visited", path)
+ msg.Verbose("coldboot visited", path)
}, func(err error) bool {
if _, ok := err.(uevent.NeedsColdboot); ok && !nextColdboot() {
r.Dispatch(