Merge ~cjwatson/launchpad-buildd:cpuinfo-workaround into launchpad-buildd:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 29affd0ca3e686d612711f30634280f4b878eb97 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad-buildd:cpuinfo-workaround |
Merge into: | launchpad-buildd:master |
Diff against target: |
138 lines (+35/-9) 3 files modified
debian/changelog (+7/-0) lpbuildd/target/lxd.py (+10/-0) lpbuildd/target/tests/test_lxd.py (+18/-9) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jürgen Gmach | Approve | ||
Review via email: mp+428923@code.launchpad.net |
Commit message
Work around hangs in Rust-based snap builds for armhf
Description of the change
LXCFS provides `/proc/cpuinfo` as a FUSE overlay inside containers to filter visible CPUs based on cgroups. On armhf, this results in the wrong CPU features being visible to guests, because LXCFS itself is an arm64 binary. This causes Rust-based snap builds to hang on armhf, because the combination of armhf userspace and a `/proc/cpuinfo` that lacks the `neon` feature causes them to attempt to run ARMv6 code.
For now, work around this as suggested by the LXD maintainer by unmounting `/proc/cpuinfo` inside the container.
To post a comment you must log in.