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

View File

@@ -175,7 +175,8 @@ func NeedsUserXAttr(d string) (bool, error) {
}
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",
}