From 5d18af00077ae6ba8ef686d1fd93d888f69681b2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 21:29:16 +0900 Subject: container/fhs: move pathname constants This allows referencing FHS pathnames 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 519aadaf..0ebe6b2b 100644 --- a/container/autoroot.go +++ b/container/autoroot.go @@ -5,6 +5,7 @@ import ( "fmt" "hakurei.app/container/check" + "hakurei.app/container/fhs" ) func init() { gob.Register(new(AutoRootOp)) } @@ -40,7 +41,7 @@ func (r *AutoRootOp) early(state *setupState, k syscallDispatcher) error { // careful: the Valid method is skipped, make sure this is always valid op := &BindMountOp{ Source: r.Host.Append(name), - Target: AbsFHSRoot.Append(name), + Target: fhs.AbsRoot.Append(name), Flags: r.Flags, } if err = op.early(state, k); err != nil { -- cgit v1.3.1