From 8766fddcb3a8047673e513ce0d60c8c46edb5ba1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 27 Mar 2026 22:58:16 +0900 Subject: internal/uevent: recoverable errors This runs in the Rosa OS init, so recover as much as possible, as otherwise it is likely to require a full system reboot to resume event processing. The caller is responsible for reporting the error. Signed-off-by: Ophestra --- internal/uevent/action.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/uevent/action.go') diff --git a/internal/uevent/action.go b/internal/uevent/action.go index 4f1f4f79..3eeb4d7e 100644 --- a/internal/uevent/action.go +++ b/internal/uevent/action.go @@ -59,6 +59,9 @@ func (act KobjectAction) MarshalText() ([]byte, error) { // not yet supported by this package. type UnsupportedActionError string +var _ Recoverable = UnsupportedActionError("") + +func (UnsupportedActionError) recoverable() {} func (e UnsupportedActionError) Error() string { return "unsupported kobject_action " + strconv.Quote(string(e)) } -- cgit v1.3.1