Commit c903f43
committed
fix: repair pre-installed venv instead of nuking on import failure
The basalt golden image pre-installs /opt/cua/venv with
cua-computer-server at build time. But on first boot, if the
import check fails (e.g., library path mismatch between build-time
and boot-time python), the script was deleting the entire venv and
reinstalling from PyPI — adding ~10 minutes to first-boot startup.
Now tries an in-place pip repair before falling back to full
reinstall. This should make the pre-installed venv survive minor
environment differences and keep boot time under 2 minutes.1 parent c29ca14 commit c903f43
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
149 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
150 | 164 | | |
151 | 165 | | |
152 | 166 | | |
| |||
0 commit comments