Commit 68e2010
committed
bwrap: Bind-mount host /dev instead of creating fresh devtmpfs
Replace `--dev /dev` with `--dev-bind /dev /dev` in the bwrap
container setup so that lsblk inside the sandbox can properly
enumerate partition children of block devices (e.g. loop devices).
The previous approach created a minimal devtmpfs that lacked complete
device information, causing ESP partition discovery to fail inside
the bwrap sandbox. With a full bind-mount of host /dev, the
per-device bind_device() mechanism is no longer needed and is removed.
Additionally, bind-mount /run/udev into the sandbox when it exists
so that lsblk and libblkid can read the udev database for partition
type GUIDs and other device properties. Without this, tools that
query device metadata (e.g. PARTTYPE) would get incomplete results
even with /dev properly mounted.
Assisted-by: Claude Code (Opus 4)
Signed-off-by: ckyrouac <ckyrouac@redhat.com>1 parent b5173fe commit 68e2010
2 files changed
Lines changed: 9 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 125 | + | |
130 | 126 | | |
131 | 127 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 128 | + | |
140 | 129 | | |
141 | 130 | | |
142 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
| |||
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
44 | | - | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
57 | 53 | | |
58 | 54 | | |
59 | 55 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 56 | | |
67 | 57 | | |
68 | 58 | | |
| |||
79 | 69 | | |
80 | 70 | | |
81 | 71 | | |
82 | | - | |
| 72 | + | |
83 | 73 | | |
84 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
88 | 84 | | |
89 | 85 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 86 | | |
96 | 87 | | |
97 | 88 | | |
| |||
0 commit comments