Clean up error logs and messages in temp mount

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2018-01-05 11:35:29 -08:00
parent 002c0e2901
commit dfd7ee122f
4 changed files with 17 additions and 18 deletions

View File

@@ -271,7 +271,7 @@ func WithUserID(uid uint32) SpecOpts {
return err
}
return mount.WithTempMount(mounts, func(root string) error {
return mount.WithTempMount(ctx, mounts, func(root string) error {
ppath, err := fs.RootPath(root, "/etc/passwd")
if err != nil {
return err
@@ -319,7 +319,7 @@ func WithUsername(username string) SpecOpts {
if err != nil {
return err
}
return mount.WithTempMount(mounts, func(root string) error {
return mount.WithTempMount(ctx, mounts, func(root string) error {
ppath, err := fs.RootPath(root, "/etc/passwd")
if err != nil {
return err