@@ -38,6 +38,9 @@ default_vcpus = 1
3838[extra_binaries .virtiofsd ]
3939path = " /usr/libexec/virtiofsd"
4040options = " --sandbox none"
41+
42+ [rootfs_view ]
43+ enabled = false
4144```
4245
4346## Configuration Sections
@@ -89,6 +92,36 @@ destination = "/tmp/urunc-timestamps.log"
8992
9093When enabled, ` urunc ` will log performance timestamps to help with debugging and optimization.
9194
95+ ### Rootfs View Configuration
96+
97+ The ` [rootfs_view] ` section controls whether the urunc shim prepares a
98+ per-container containerd rootfs view at task Create (for ` devmapper ` /
99+ ` blockfile ` snapshotters). This is a ** host-level** setting in
100+ ` /etc/urunc/config.toml ` , not an OCI bundle annotation.
101+
102+ | Option | Type | Default | Description |
103+ | --------| ------| ---------| -------------|
104+ | ` enabled ` | boolean | ` false ` | Prepare rootfs views for container block rootfs after shim task Create |
105+
106+ When ` enabled = true ` , the shim first lets the wrapped task service create the
107+ task so the bundle rootfs is mounted. It then runs ` ChooseRootfs ` and prepares a
108+ view only if ** all** of the following hold:
109+
110+ 1 . The container snapshotter is block-based (` devmapper ` or ` blockfile ` ).
111+ 2 . Shim ` ChooseRootfs ` selected ** container block rootfs** (` type=block ` with a
112+ non-empty ` MountedPath ` ).
113+
114+ This matches the block-rootfs boot-artifact path: kernel/initrd are read from a
115+ read-only view instead of being copied out of the container rootfs before attach.
116+ ` com.urunc.unikernel.rootfsView ` is not used for this gate.
117+
118+ ** Example:**
119+
120+ ``` toml
121+ [rootfs_view ]
122+ enabled = true
123+ ```
124+
92125### Monitor Configuration
93126
94127The ` [monitors] ` section allows you to configure default settings for different
0 commit comments