Commit f64cc0f
committed
fix(install): prevent dm semaphore deadlock in container IPC namespace
Add --ipc=host to the documented podman invocations for bootc install.
Without IPC namespace sharing, libdevmapper's udev cookie semaphores
cannot reach udevd on the host, causing cryptsetup luksOpen/luksClose
to deadlock on semop().
As defense-in-depth, also set DM_DISABLE_UDEV=1 in global_init() to
catch cases where IPC sharing is not configured. This tells
libdevmapper to skip udev synchronization entirely.
Fixes: #2089
Related: #421
Signed-off-by: Andrew Dunn <andrew@dunn.dev>1 parent 5cbb111 commit f64cc0f
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1493 | 1493 | | |
1494 | 1494 | | |
1495 | 1495 | | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
1496 | 1505 | | |
1497 | 1506 | | |
1498 | 1507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
0 commit comments