-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
"No removable drive detected." when /tmp is mounted as noexec #1699
Comments
Yeah, that'll be because we write the We've already moved the drivelist functionality into native code for Windows (because it solved a lot of spawning problems) but we've not yet done that for Linux or macOS. |
@lurch What do you think about spawning the drives somewhere else in the mean-time, like |
I dunno, that might work. What does @szotsaki think? I did a bit of googling, and found a bunch of pages telling you how to enable a noexec /tmp directory, and also a bunch of pages telling you how to temporarily disable the noexec option ;-) https://debian-administration.org/article/57/Making_/tmp_non-executable I did a little bit of digging, and
So @szotsaki could you try running |
Yes, I used the Directory selection idea: I recommend to adhere to Freedesktop specification, specifically Running ethcher with |
Sorry, that's not what I was suggesting. I was just illustrating that other programs can have problems with a non-executable Thanks for the info about |
@szotsaki Thanks a lot for the XDG suggestions. I'll be sending a PR very soon :) |
Some systems mount `/tmp` with `noexec`, causing `spawn EACCES` errors. See: balena-io/etcher#1699 See: https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Some systems mount `/tmp` with `noexec`, causing `spawn EACCES` errors. See: balena-io/etcher#1699 See: https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html Change-Type: patch Changelog-Entry: Store GNU/Linux temporary scripts in `$XDG_RUNTIME_DIR`. Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Some systems mount `/tmp` with `noexec`, causing `spawn EACCES` errors. See: balena-io/etcher#1699 See: https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html Change-Type: patch Changelog-Entry: Store GNU/Linux temporary scripts in `$XDG_RUNTIME_DIR`. Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Some systems mount `/tmp` with `noexec`, causing `spawn EACCES` errors. See: balena-io/etcher#1699 See: https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html Change-Type: patch Changelog-Entry: Store GNU/Linux temporary scripts in `$XDG_RUNTIME_DIR`. Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Fixes: #1699 Change-Type: patch Changelog-Entry: Try to use `$XDG_RUNTIME_DIR` to extract temporary scripts on GNU/Linux. Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Fixes: #1699 Change-Type: patch Changelog-Entry: Try to use `$XDG_RUNTIME_DIR` to extract temporary scripts on GNU/Linux. Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Re-opening this issue, as the proposed fix actually breaks things for other Linux distros, see balena-io-modules/drivelist#209 (comment) (BTW it seems |
Closing, as drivelist in Etcher has been upgraded. |
Mount /tmp as
noexec
(many people and some distros do that by default) and click on "Select drive" after you chose an image. It will show "No removable drive detected".Console log:
The text was updated successfully, but these errors were encountered: