Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Invalid cross-device link on Linux with tmpfs /tmp #3

Closed
mati865 opened this issue Jun 7, 2018 · 1 comment
Closed

Error Invalid cross-device link on Linux with tmpfs /tmp #3

mati865 opened this issue Jun 7, 2018 · 1 comment

Comments

@mati865
Copy link

mati865 commented Jun 7, 2018

Running rustup-toolchain-install-master c131bdcaff68d35f96e954baac4340206779335f on Linux with tmpfs mounted /tmp gives me:

Os { code: 18, kind: Other, message: "Invalid cross-device link" }

This is because rustup-toolchain-install-master downloads into /tmp and tries to link it to user home.
One cannot hard link between partitions, creating symbolic links would work however (dunno if rustc would work that way).
Looked into code more carefully and this crate uses std::fs::rename which cannot move to different mount point.

@kennytm kennytm closed this as completed in 567602d Jun 7, 2018
@mati865
Copy link
Author

mati865 commented Jun 7, 2018

Confirming the fix is working.
Thank you for quick reaction. 🥇

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

No branches or pull requests

1 participant