mirror of
https://github.com/containers/podman.git
synced 2025-07-25 17:20:20 +08:00
fix: swapped volume relabel option values
Signed-off-by: Xabier Napal <xabiernapal@pm.me>
This commit is contained in:
@ -337,9 +337,9 @@ func getBindMount(args []string) (spec.Mount, error) {
|
|||||||
}
|
}
|
||||||
switch kv[1] {
|
switch kv[1] {
|
||||||
case "private":
|
case "private":
|
||||||
newMount.Options = append(newMount.Options, "z")
|
|
||||||
case "shared":
|
|
||||||
newMount.Options = append(newMount.Options, "Z")
|
newMount.Options = append(newMount.Options, "Z")
|
||||||
|
case "shared":
|
||||||
|
newMount.Options = append(newMount.Options, "z")
|
||||||
default:
|
default:
|
||||||
return newMount, errors.Wrapf(util.ErrBadMntOption, "%s mount option must be 'private' or 'shared'", kv[0])
|
return newMount, errors.Wrapf(util.ErrBadMntOption, "%s mount option must be 'private' or 'shared'", kv[0])
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user