Commit f88976c
feat: arch-aware downloads in create-build and fetch-busybox target (#2260)
* feat: arch-aware downloads in create-build and fetch-busybox target
- Update setupKernel/setupFC to use arch-prefixed URLs with legacy fallback
- Add errNotFound sentinel for 404 handling in download helper
- Use atomic temp-file writes to avoid partial downloads
- Add fetch-busybox Makefile target to swap busybox binary for ARM64 builds
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: commit both amd64 and arm64 busybox binaries with build tags
Replace the single x86-64 busybox binary + fetch-busybox Makefile hack
with two architecture-specific binaries selected via Go build tags.
GOARCH automatically picks the right binary at compile time.
- busybox_amd64: existing x86-64 static binary (renamed)
- busybox_arm64: aarch64 static binary
- busybox_amd64.go / busybox_arm64.go: build-tag-gated embeds
- Remove fetch-busybox Makefile target (no longer needed)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: rename busybox binaries with version, add source comments
Per review: keep version in filename (busybox_1.36.1-2_{arch}) and
document the package source in the Go embed files.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: e2b <e2b@Onsites-MacBook-Pro.local>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5d96982 commit f88976c
6 files changed
Lines changed: 119 additions & 32 deletions
File tree
- packages/orchestrator
- cmd/create-build
- pkg/template/build/core/systeminit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
418 | 420 | | |
419 | 421 | | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
423 | | - | |
| 425 | + | |
424 | 426 | | |
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
428 | | - | |
429 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
430 | 455 | | |
431 | | - | |
| 456 | + | |
432 | 457 | | |
433 | 458 | | |
434 | 459 | | |
435 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
436 | 463 | | |
437 | 464 | | |
438 | 465 | | |
439 | 466 | | |
440 | 467 | | |
441 | | - | |
| 468 | + | |
442 | 469 | | |
443 | 470 | | |
444 | 471 | | |
445 | 472 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
453 | 477 | | |
454 | | - | |
455 | | - | |
456 | 478 | | |
457 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
458 | 500 | | |
459 | 501 | | |
460 | | - | |
461 | | - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
462 | 510 | | |
463 | 511 | | |
464 | 512 | | |
465 | 513 | | |
466 | 514 | | |
467 | 515 | | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
468 | 519 | | |
469 | | - | |
| 520 | + | |
470 | 521 | | |
471 | 522 | | |
472 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
473 | 528 | | |
474 | 529 | | |
475 | 530 | | |
476 | | - | |
477 | 531 | | |
478 | | - | |
479 | | - | |
480 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
481 | 537 | | |
482 | 538 | | |
483 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
484 | 554 | | |
Lines changed: 0 additions & 6 deletions
This file was deleted.
Binary file not shown.
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments