From 9ed3ba85eaba4bc4bd12b290dc4daf00ffe159dc Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 15 Aug 2025 03:30:51 +0900 Subject: hst/fs: implement overlay fstype This finally exposes overlay mounts in the high level hakurei API. Signed-off-by: Ophestra --- hst/fs.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hst/fs.go') diff --git a/hst/fs.go b/hst/fs.go index a9ced38f..0dc95a99 100644 --- a/hst/fs.go +++ b/hst/fs.go @@ -81,6 +81,12 @@ func (f *FilesystemConfigJSON) MarshalJSON() ([]byte, error) { *FSEphemeral }{fsType{FilesystemEphemeral}, cv} + case *FSOverlay: + v = &struct { + fsType + *FSOverlay + }{fsType{FilesystemOverlay}, cv} + default: return nil, FSImplError{f.FilesystemConfig} } @@ -103,6 +109,9 @@ func (f *FilesystemConfigJSON) UnmarshalJSON(data []byte) error { case FilesystemEphemeral: *f = FilesystemConfigJSON{new(FSEphemeral)} + case FilesystemOverlay: + *f = FilesystemConfigJSON{new(FSOverlay)} + default: return FSTypeError(t.Type) } -- cgit v1.3.1