Commit f158e1a
committed
Fix 4 bugs: embed entitlements, air vz-shim copy, install.sh codesign entitlements, launchd e2fsprogs PATH
- Bug 1: Embed vz.entitlements as a Go resource and write to temp file at
runtime for codesigning, instead of looking for it next to the executable
where it would never be found.
- Bug 2: Add 'mkdir -p && cp' step in .air.darwin.toml to copy the built
vz-shim binary to lib/hypervisor/vz/vz-shim/vz-shim (the go:embed
directory) before building the main binary.
- Bug 3: Generate entitlements plist inline in install.sh download path and
pass --entitlements to codesign, so downloaded binaries get the required
com.apple.security.virtualization entitlement.
- Bug 4: Prepend /opt/homebrew/opt/e2fsprogs/sbin to the launchd plist PATH
so mkfs.ext4 (keg-only on Homebrew) is found at runtime.1 parent d8e95da commit f158e1a
File tree
5 files changed
+64
-15
lines changed- lib/hypervisor/vz
- scripts
5 files changed
+64
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
60 | 77 | | |
61 | | - | |
| 78 | + | |
62 | 79 | | |
63 | 80 | | |
64 | 81 | | |
| |||
70 | 87 | | |
71 | 88 | | |
72 | 89 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
356 | 372 | | |
357 | 373 | | |
358 | 374 | | |
| |||
543 | 559 | | |
544 | 560 | | |
545 | 561 | | |
546 | | - | |
| 562 | + | |
547 | 563 | | |
548 | 564 | | |
549 | 565 | | |
| |||
0 commit comments