Merge pull request #8852 from bpfoster/issue-8851

Fix ro mount option being passed
This commit is contained in:
Fu Wei 2023-07-21 21:14:48 +08:00 committed by GitHub
commit 59959b31ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,8 @@ func NeedsUserXAttr(d string) (bool, error) {
} }
opts := []string{ opts := []string{
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")), "ro",
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")),
"userxattr", "userxattr",
} }