chroot: fix device nodes in overlay base image
Metadata
Current evaluation
Merged. Replaced standard bind mounts with rbind to fix device nodes failing to appear in containers. Approved by a reviewer and passed CI checks.
Suggested action: —
No scores available.
Issue body
Device nodes won't appear correctly in a regular bind mount inside a container, so use rbind instead.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
CRAFT-1416
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Replaced standard bind mounts with rbind to fix device nodes failing to appear in containers. Approved by a reviewer and passed CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix resolving device nodes not appearing in container bind mounts by switching to rbind mounts. Addresses CRAFT-1416. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #400 chroot: mark /dev mount as private | craft-parts | merged | Merged fix marking /dev mount as private to prevent shared mount propagation in chroots. Resolves unmount cascading caused by rootfs becoming a shared mount, addressing rockcraft#195. Approved and passed CI. | |
| #1348 fix: Make mounted devices private before recursively unmounting the chroot | craft-parts | merged | Merged fix that remounts chroot devices as private before recursive unmounting to properly handle submounts. Resolves #1344. Approved by reviewers and passed all CI checks. |