internal/rosa: access backing storage through fs

This is more versatile than hardcoding the os.Root implementation.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-06-07 21:12:15 +09:00
parent 9344f694c7
commit 38450db74a
3 changed files with 92 additions and 9 deletions
+1 -1
View File
@@ -522,7 +522,7 @@ func main() {
if base, err := os.OpenRoot(cm.base); err != nil {
return err
} else {
h = rosa.NewMirror(msg, base, key)
h = rosa.NewMirror(msg, base.FS(), key)
}
server := http.Server{Addr: args[0], Handler: h}