summaryrefslogtreecommitdiff
path: root/libpod/container_internal_linux.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-10 16:58:41 -0400
committerGitHub <noreply@github.com>2021-06-10 16:58:41 -0400
commit6feaae699d70191071595716a383bbd48793a81a (patch)
treef4f81492377419b9281dba4c91f1764dc0c730b9 /libpod/container_internal_linux.go
parent2aedcae02683390b340e52d342c55277d604df67 (diff)
parent240bbc3bfa7d0dcab287186907b2bb350b8b370a (diff)
downloadpodman-6feaae699d70191071595716a383bbd48793a81a.tar.gz
podman-6feaae699d70191071595716a383bbd48793a81a.tar.bz2
podman-6feaae699d70191071595716a383bbd48793a81a.zip
Merge pull request #10639 from adrianreber/2021-06-10-pre-dump-fix
Fix pre-checkpointing
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r--libpod/container_internal_linux.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index 94bf7855b..ddfccb999 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -909,14 +909,15 @@ func (c *Container) exportCheckpoint(options ContainerCheckpointOptions) error {
includeFiles := []string{
"artifacts",
"ctr.log",
- metadata.CheckpointDirectory,
metadata.ConfigDumpFile,
metadata.SpecDumpFile,
metadata.NetworkStatusFile,
}
if options.PreCheckPoint {
- includeFiles[0] = "pre-checkpoint"
+ includeFiles = append(includeFiles, preCheckpointDir)
+ } else {
+ includeFiles = append(includeFiles, metadata.CheckpointDirectory)
}
// Get root file-system changes included in the checkpoint archive
var addToTarFiles []string