From fa4720fa16b0609c94f776a480bab496f2e3b3fe Mon Sep 17 00:00:00 2001 From: Xinlin Ma Date: Fri, 27 May 2022 12:30:41 +0200 Subject: [PATCH] fix add ro mount for userattr-unmount unexpected timeout Signed-off-by: Xinlin Ma --- snapshots/overlay/overlayutils/check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshots/overlay/overlayutils/check.go b/snapshots/overlay/overlayutils/check.go index c5b93fc57..1833ffc8a 100644 --- a/snapshots/overlay/overlayutils/check.go +++ b/snapshots/overlay/overlayutils/check.go @@ -145,7 +145,7 @@ func NeedsUserXAttr(d string) (bool, error) { } opts := []string{ - fmt.Sprintf("lowerdir=%s:%s,upperdir=%s,workdir=%s", filepath.Join(td, "lower2"), filepath.Join(td, "lower1"), filepath.Join(td, "upper"), filepath.Join(td, "work")), + fmt.Sprintf("ro,lowerdir=%s:%s,upperdir=%s,workdir=%s", filepath.Join(td, "lower2"), filepath.Join(td, "lower1"), filepath.Join(td, "upper"), filepath.Join(td, "work")), "userxattr", }