Skip to content

Commit

Permalink
start-cli s9pk pack: silence mksquashfs output
Browse files Browse the repository at this point in the history
  • Loading branch information
remcoros committed Oct 22, 2024
1 parent 28e39c5 commit c4e5b7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/startos/src/s9pk/v2/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ impl SqfsDir {
let path = self.tmpdir.join(guid.as_ref()).with_extension("squashfs");
if self.path.extension().and_then(|s| s.to_str()) == Some("tar") {
Command::new("tar2sqfs")
.arg("-q")
.arg(&path)
.input(Some(&mut open_file(&self.path).await?))
.invoke(ErrorKind::Filesystem)
Expand All @@ -70,6 +71,7 @@ impl SqfsDir {
Command::new("mksquashfs")
.arg(&self.path)
.arg(&path)
.arg("-quiet")
.invoke(ErrorKind::Filesystem)
.await?;
}
Expand Down Expand Up @@ -513,7 +515,7 @@ impl ImageSource {
Command::new(CONTAINER_TOOL)
.arg("export")
.arg(container.trim())
.pipe(Command::new("tar2sqfs").arg(&dest))
.pipe(Command::new("tar2sqfs").arg("-q").arg(&dest))
.capture(false)
.invoke(ErrorKind::Docker)
.await?;
Expand Down

0 comments on commit c4e5b7f

Please sign in to comment.