Skip to content

Commit

Permalink
Merge pull request #71 from getsolus/parallel-unxz
Browse files Browse the repository at this point in the history
init: Use multithreaded xz decompression (-T0)
  • Loading branch information
silkeh authored Feb 18, 2024
2 parents d676eb2 + e4ef691 commit 9d02348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func doInit(manager *builder.Manager) {
// Decompress the image
slog.Debug("Decompressing backing image", "source", bk.ImagePathXZ, "target", bk.ImagePath)

if err := commands.ExecStdoutArgsDir(builder.ImagesDir, "unxz", []string{bk.ImagePathXZ}); err != nil {
if err := commands.ExecStdoutArgsDir(builder.ImagesDir, "unxz", []string{"-T0", bk.ImagePathXZ}); err != nil {
slog.Error("Failed to decompress image", "source", bk.ImagePathXZ, "err", err)
panic(err)
}
Expand Down

0 comments on commit 9d02348

Please sign in to comment.