1
0
forked from rosa/hakurei

internal/uevent: enumerate objects via sysfs

This is not a great way to implement cold boot, but I already have the implementation lying around.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-29 19:50:20 +09:00
parent 19c76e0831
commit 121fcfa406
5 changed files with 141 additions and 1 deletions

View File

@@ -110,6 +110,12 @@ SEQNUM=780`},
}, "move", uevent.MissingHeaderError(
"move",
), syscall.EINVAL, "unsupported kobject_action 2989 event:"},
{"synthetic", uevent.Message{
Action: uevent.Synthetic,
}, "synthetic@\x00", uevent.UnsupportedActionError(
"synthetic",
), nil, "synthetic event:"},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {