container icon indicating copy to clipboard operation
container copied to clipboard

[Request]: Resume kernel downloads and reuse verified installations

Open guanchzhou opened this issue 2 months ago • 0 comments

container system kernel set --recommended downloads a large kernel archive from scratch after an interruption. Re-running it can also download the same archive again when the extracted kernel is already installed.

The kernel installer should:

  • retain an incomplete archive under a digest-keyed path and resume it with an HTTP Range request;
  • validate partial responses, restart when the server ignores or cannot satisfy the range, and discard archives that fail SHA-256 verification;
  • record the installed kernel filename and SHA-256 after a successful install;
  • skip network I/O on later non---force installs when that recorded kernel still matches, while keeping --force as an explicit re-download and replacement.

This makes interrupted recommended-kernel installs recoverable and avoids repeated downloads without trusting legacy files that have no installation metadata.

guanchzhou avatar Sep 21 '26 17:09 guanchzhou