From a7a701196102534d4edac8d7ccbabf7ec1cb2ccf Mon Sep 17 00:00:00 2001 From: Xabier Napal Date: Wed, 23 Jun 2021 22:42:03 +0200 Subject: fix: swapped volume relabel option values Signed-off-by: Xabier Napal --- cmd/podman/common/volumes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/podman/common/volumes.go b/cmd/podman/common/volumes.go index aff323936..883d604da 100644 --- a/cmd/podman/common/volumes.go +++ b/cmd/podman/common/volumes.go @@ -337,9 +337,9 @@ func getBindMount(args []string) (spec.Mount, error) { } switch kv[1] { case "private": - newMount.Options = append(newMount.Options, "z") - case "shared": newMount.Options = append(newMount.Options, "Z") + case "shared": + newMount.Options = append(newMount.Options, "z") default: return newMount, errors.Wrapf(util.ErrBadMntOption, "%s mount option must be 'private' or 'shared'", kv[0]) } -- cgit v1.2.3-54-g00ecf