← Back to issue list

mmdebstrap can misbehave with the LXD provider

View original Github issue

Metadata

Project
imagecraft
Number
#489
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Fixed in #482 via mknod workaround shim for LXD provider inconsistency

Resolution: closed resolved

Reason: Issue #489 was resolved by merged PR #482 which implements a mknod shim to bypass inconsistent mknod behavior in LXD containers.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Check existing issues - [x] I've verified that this bug isn't described by any existing issues. ### Bug description When using the LXD provider (default provider), either the mmdebstrap plugin or the mmdebstrap command in an override-build command can fail with an error about `mknod`. This happens because, depending on the host's particular LXD configuration, the containers may allow the `mknod` call that mmdebstrap uses for testing while still failing the `mknod` call it uses to create `/dev/ptmx` in the chroot. When this happens, Imagecraft needs to be configured to fail on any `mknod` call in the container at all. ### Steps to reproduce 1. Get an imagecraft.yaml that uses mmdebstrap 2. Run it with the LXD provider ### Environment LXD configuration that allows a major, minor character device type of 1,2 but not of 5,3 ### imagecraft.yaml ```yaml ``` ### Log output ```shell ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b — closed resolved Fixed in #482 via mknod workaround shim for LXD provider inconsistency
~deepseek/deepseek-pro-latest
Impact: 55
Quick Win: 23
Complexity: 40
Confidence: 65
Actionability: 70
needs triage mmdebstrap plugin or override-build can fail under LXD provider when partial mknod interception allows a test mknod but not /dev/ptmx creation; Imagecraft should disable mknod interception.

Update history

Date Change
closed
created

Related work

  • Likely Fixed By: imagecraft#482 (confidence 95%)

    PR #482 implements the mknod workaround for LXD that resolves the mmdebstrap failure described in #489

Related issues

No related issues found above the similarity threshold.