Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`CRRuntimeSupportsPodCheckpointRestore()` is used to check if the current container runtime (e.g., runc or crun) can restore a container into an existing Pod. It does this by processing output message to check if the `--lsm-mount-context` option is supported. This option was recently added to crun [1], however, crun and runc have slightly different output messages: ``` $ crun restore--lsm-mount-contextt restore: option '--lsm-mount-context' requires an argument Try `restore --help' or `restore --usage' for more information. ``` ``` $ runc restore --lsm-mount-context ERRO[0000] flag needs an argument: -lsm-mount-context ``` This patch updates the function to support both runtimes. [1] containers/crun#1578 Signed-off-by: Radostin Stoyanov <[email protected]>
- Loading branch information