mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Merge pull request #10635 from adrianreber/2021-06-04-privileged
Fix restoring of privileged containers
This commit is contained in:
@ -428,7 +428,7 @@ func (c *Container) setupStorage(ctx context.Context) error {
|
|||||||
},
|
},
|
||||||
LabelOpts: c.config.LabelOpts,
|
LabelOpts: c.config.LabelOpts,
|
||||||
}
|
}
|
||||||
if c.restoreFromCheckpoint {
|
if c.restoreFromCheckpoint && !c.config.Privileged {
|
||||||
// If restoring from a checkpoint, the root file-system
|
// If restoring from a checkpoint, the root file-system
|
||||||
// needs to be mounted with the same SELinux labels as
|
// needs to be mounted with the same SELinux labels as
|
||||||
// it was mounted previously.
|
// it was mounted previously.
|
||||||
|
Reference in New Issue
Block a user