From bb7c2f94d56fadcc405de434579d6cb3c1d7a964 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 11 Feb 2023 08:28:26 +0000 Subject: [PATCH] podman: squash all layers into a single layer --- kernel.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel.go b/kernel.go index 8528978..fafa25e 100644 --- a/kernel.go +++ b/kernel.go @@ -99,7 +99,7 @@ func (cmd *KernelDockerRegenCmd) Run(kernelCmd *KernelCmd, g *Globals) (err erro args := []string{"build"} _, err = exec.Command("which", "podman").CombinedOutput() if err != nil { - args = append(args, "--squash") + args = append(args, "--squash-all") } args = append(args, "-t", d.ContainerName, imagePath) @@ -355,7 +355,7 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand, args := []string{"build"} _, err = exec.Command("which", "podman").CombinedOutput() if err != nil { - args = append(args, "--squash") + args = append(args, "--squash-all") } args = append(args, "-t", sk.DockerName(), imagePath) @@ -429,7 +429,7 @@ func dockerImageAppend(sk config.KernelMask, pkgname string) (err error) { args := []string{"build"} _, err = exec.Command("which", "podman").CombinedOutput() if err != nil { - args = append(args, "--squash") + args = append(args, "--squash-all") } args = append(args, "-t", sk.DockerName(), imagePath)