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 --- cmd/hakurei/print_test.go | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'cmd') diff --git a/cmd/hakurei/print_test.go b/cmd/hakurei/print_test.go index c72e7ab6..0935de27 100644 --- a/cmd/hakurei/print_test.go +++ b/cmd/hakurei/print_test.go @@ -49,6 +49,7 @@ func Test_printShowInstance(t *testing.T) { Filesystem w+ephemeral(-rwxr-xr-x):/tmp/ + w*/nix/store:/mnt-root/nix/.rw-store/upper:/mnt-root/nix/.rw-store/work:/mnt-root/nix/.ro-store */nix/store */run/current-system */run/opengl-driver @@ -127,6 +128,7 @@ App Filesystem w+ephemeral(-rwxr-xr-x):/tmp/ + w*/nix/store:/mnt-root/nix/.rw-store/upper:/mnt-root/nix/.rw-store/work:/mnt-root/nix/.ro-store */nix/store */run/current-system */run/opengl-driver @@ -278,6 +280,15 @@ App "write": true, "perm": 493 }, + { + "type": "overlay", + "dst": "/nix/store", + "lower": [ + "/mnt-root/nix/.ro-store" + ], + "upper": "/mnt-root/nix/.rw-store/upper", + "work": "/mnt-root/nix/.rw-store/work" + }, { "type": "bind", "src": "/nix/store" @@ -413,6 +424,15 @@ App "write": true, "perm": 493 }, + { + "type": "overlay", + "dst": "/nix/store", + "lower": [ + "/mnt-root/nix/.ro-store" + ], + "upper": "/mnt-root/nix/.rw-store/upper", + "work": "/mnt-root/nix/.rw-store/work" + }, { "type": "bind", "src": "/nix/store" @@ -602,6 +622,15 @@ func Test_printPs(t *testing.T) { "write": true, "perm": 493 }, + { + "type": "overlay", + "dst": "/nix/store", + "lower": [ + "/mnt-root/nix/.ro-store" + ], + "upper": "/mnt-root/nix/.rw-store/upper", + "work": "/mnt-root/nix/.rw-store/work" + }, { "type": "bind", "src": "/nix/store" -- cgit v1.3.1