Commit 7bcded6
committed
feat(extensions/netboot): clarify kernel-only deploy contract — initramfs is build-side only
Initramfs cannot be regenerated correctly outside a full image build:
its content depends on the configured rootfs (customize_image hooks,
/etc/initramfs-tools tweaks, board-specific extensions, userpatches
overlay), and that context survives only during the build itself.
After deploy the configured rootfs lives only on the NFS server, which
may be OpenWRT/embedded/etc. and cannot run chroot+update-initramfs;
regenerating from the generic post-debootstrap rootfs cache would
produce a *different* initramfs than the one the full build would have
made — fake, not just incomplete.
Therefore artifact_ready__netboot_kernel_deploy now:
- drops any pre-existing uInitrd from TFTP after the kernel rsync,
so U-Boot does not pair the new kernel with a stale initramfs whose
modules have a wrong vermagic
- replaces the previous 'run update-initramfs on the server' guidance
(which was wrong — server-side regen is impossible on most servers
and produces a wrong initramfs even where it is) with a clear
contract: 'for a fresh initramfs do a full image rebuild'
- documents the boot-time consequence in the function header: boards
with built-in boot networking (mvneta, etc.) come up cleanly
without initramfs; modular-NIC boards fail fast at networking and
the operator knows to do a full rebuild
README 'Kernel-only deploy' section reframed as a narrow optimization
for built-in-NIC boards rather than a general kernel refresh path,
with explicit guidance on when to use it vs the full image rebuild.
Closes the long-standing P2 (NETBOOT_DEPLOY_REGENERATE_INITRD) by
contract clarification, not deferred TODO: standalone initramfs
regeneration is an architecturally wrong frame, removed from scope.
Assisted-by: Claude:claude-opus-4.7
Signed-off-by: Igor Velkov <325961+iav@users.noreply.github.com>1 parent 3e9d578 commit 7bcded6
2 files changed
Lines changed: 84 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
187 | 190 | | |
188 | 191 | | |
189 | 192 | | |
| |||
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
195 | 205 | | |
196 | 206 | | |
197 | 207 | | |
198 | 208 | | |
199 | 209 | | |
200 | 210 | | |
201 | 211 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
215 | 238 | | |
216 | 239 | | |
217 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
454 | 473 | | |
455 | 474 | | |
456 | 475 | | |
| |||
571 | 590 | | |
572 | 591 | | |
573 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
574 | 608 | | |
575 | 609 | | |
576 | 610 | | |
| |||
606 | 640 | | |
607 | 641 | | |
608 | 642 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
613 | 647 | | |
614 | | - | |
| 648 | + | |
615 | 649 | | |
0 commit comments