Files
containerd/plugins
Gao Xiang 3b357da496 snapshotter/erofs: avoid using overlay if fsmerge is enabled and no upperdir
If fsmerge is enabled and no write is needed, it can return an overlay
mount with a single lowerdir, which is illegal for overlayfs.

For example, it can cause the following Nerdctl error:
 : I'm not sure why ctr works, but the issue is real.

```bash
$ nerdctl run --runtime io.containerd.kata.v2 --snapshotter=erofs -it --rm nginx:latest /bin/bash
FATA[0000] failed to mount {Type:overlay Source:overlay Target: Options:[lowerdir=/run/containerd/
io.containerd.mount-manager.v1.bolt/t/7/1]} on "/tmp/initialC2039543827": mount source: "overlay",
target: "/tmp/initialC2039543827", fstype: overlay, flags: 0, data: "lowerdir=/run/containerd/io.
containerd.mount-manager.v1.bolt/t/7/1", err: invalid argument
```

Switch to using a bind mount instead.

Fixes: 9a7500a974 ("Add support for EROFS fsmerge feature")
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2026-04-13 17:52:29 +08:00
..
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2026-03-15 18:24:15 +01:00
2025-09-18 17:08:43 -07:00