Skip to content

Add progress handler for rootfs unpacking#515

Open
DePasqualeOrg wants to merge 3 commits intoapple:mainfrom
DePasqualeOrg:unpacking-progress
Open

Add progress handler for rootfs unpacking#515
DePasqualeOrg wants to merge 3 commits intoapple:mainfrom
DePasqualeOrg:unpacking-progress

Conversation

@DePasqualeOrg
Copy link
Contributor

@DePasqualeOrg DePasqualeOrg commented Feb 4, 2026

I've added an optional progress handler for rootfs unpacking so that consumers can show progress. The Ubuntu image takes about 8 seconds to unpack on my machine, and I'm developing an app where it would be useful to show progress in the UI.

Total size is determined in an optional first pass that scans archive headers. Bytes written are then reported during unpacking. The optional first pass adds 15 (Alpine) to 115 (Ubuntu) ms to unpacking duration on my machine, depending on image size.

@DePasqualeOrg DePasqualeOrg marked this pull request as draft February 4, 2026 08:50
@DePasqualeOrg DePasqualeOrg marked this pull request as ready for review February 4, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant