Skip to content

Conversation

@mxpv
Copy link
Member

@mxpv mxpv commented Oct 14, 2022

When calling Bundle.Delete on Darwin, it attempts to unmount rootfs, which is not supported. This PR skips unmount for this platform, just deleting the directory would be sufficient.

Signed-off-by: Maksym Pavlenko [email protected]

if runtime.GOOS != "darwin" {
if err := mount.UnmountAll(rootfs, 0); err != nil {
return fmt.Errorf("unmount rootfs %s: %w", rootfs, err)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any possibility that a future version of Darwin may support nullfs (bind-mount) ?
If yes, the runtime has still try to unmount the rootfs (and ignore the error)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support of mounts on MacOS is fairly limited today and I'm not aware of any plans to support new features. I'm happy to change this once mounts are more usable on this platform.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any possibility that a future version of Darwin may support nullfs (bind-mount) ?

See #8789 (and yes, it reverts this change).

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit d7ea7de into containerd:main Oct 17, 2022
@mxpv mxpv deleted the shim branch November 28, 2022 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants