Commit 73cdd5f
committed
Prevent systemd-binfmt from running in containers
When stemcells run as privileged containers (e.g., Docker CPI on Apple
Silicon), systemd-binfmt clears the host's binfmt_misc registrations,
including Rosetta, causing "exec format error" for x86_64 processes.
Add a drop-in override with ConditionVirtualization=!container to skip
the service in containers while preserving normal behavior on VMs.
Signed-off-by: Matthew Kocher <matthew.kocher@broadcom.com>1 parent 0b584d0 commit 73cdd5f
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments