From 387b86bcdd7798a149ba2349cdf2a699f05cefe5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 1 Aug 2025 04:10:33 +0900 Subject: app: integrate container autoroot Doing this instead of mounting directly on / because it's impossible to ensure a parent is available for every path hakurei wants to mount to. This situation is similar to autoetc hence the similar name, however a symlink mirror will not work in this case. Signed-off-by: Ophestra --- hst/container.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hst/container.go') diff --git a/hst/container.go b/hst/container.go index c385344c..56229929 100644 --- a/hst/container.go +++ b/hst/container.go @@ -45,10 +45,17 @@ type ( // create symlinks inside container filesystem Link [][2]string `json:"symlink"` + // automatically bind mount top-level directories to container root; + // the zero value disables this behaviour + AutoRoot string `json:"auto_root,omitempty"` + // extra flags for AutoRoot + RootFlags int `json:"root_flags,omitempty"` + // read-only /etc directory Etc string `json:"etc,omitempty"` // automatically set up /etc symlinks AutoEtc bool `json:"auto_etc"` + // cover these paths or create them if they do not already exist Cover []string `json:"cover"` } -- cgit v1.3.1