From 87b5c30ef6d5b7b8a10d6a5a8610054c403923e6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 9 Oct 2025 05:04:08 +0900 Subject: message: relocate from container This package is quite useful. This change allows it to be imported without importing container. Signed-off-by: Ophestra --- container/autoroot.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'container/autoroot.go') diff --git a/container/autoroot.go b/container/autoroot.go index 0ebe6b2b..f555acad 100644 --- a/container/autoroot.go +++ b/container/autoroot.go @@ -6,6 +6,7 @@ import ( "hakurei.app/container/check" "hakurei.app/container/fhs" + "hakurei.app/message" ) func init() { gob.Register(new(AutoRootOp)) } @@ -81,7 +82,7 @@ func (r *AutoRootOp) String() string { } // IsAutoRootBindable returns whether a dir entry name is selected for AutoRoot. -func IsAutoRootBindable(msg Msg, name string) bool { +func IsAutoRootBindable(msg message.Msg, name string) bool { switch name { case "proc", "dev", "tmp", "mnt", "etc": -- cgit v1.3.1