Open
Description
Hello, I've migrated from docker/docker/pkg/mount
to moby/sys/mount
, and I've run in a small issue.
I'm running this test:
package main
import (
"os"
"github.com/moby/sys/mount"
)
func main() {
_ = os.Mkdir("/tmp/test", 0755)
err := mount.Mount("tmpfs", "/tmp/test", "tmpfs", "ro")
if err != nil {
panic(err)
}
err = mount.Mount("", "/tmp/test", "none", "remount,rw")
if err != nil {
panic(err)
}
}
And "remount,rw" doesn't get executed. Not sure if this is expected behavior.
It doesn't enter any case in this function:
Lines 30 to 72 in 638aa7c
Metadata
Metadata
Assignees
Labels
No labels