Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680892 - dev-lang/rust-1.32.0: cargo triggers /boot systemd automount
Summary: dev-lang/rust-1.32.0: cargo triggers /boot systemd automount
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-03-18 19:57 UTC by Chris Mayo
Modified: 2020-04-06 18:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch rust removing openssl-probe /boot path (no-probe-boot.patch,1.81 KB, patch)
2019-03-18 19:57 UTC, Chris Mayo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2019-03-18 19:57:07 UTC
Created attachment 569702 [details, diff]
Patch rust removing openssl-probe /boot path

With a separate /boot partition that is not mounted by default and systemd creating an automount unit for it, running cargo --list causes /boot to be mounted.

This happens frequently because the cargo Bash autocompletion file runs cargo --list every time a new Bash session is started e.g. a new GNOME terminal or terminal tab.

This also happens with cargo version, cargo rustc, cargo build.


cargo uses the openssl-probe crate that searches hard-coded paths for certificates, and the following was included for Haiku:

"/boot/system/data/ssl",

I've used the attached patch against rust to stop this. (It also drops:
/data/data/com.termux/files/usr/etc/tls)

Reported upstream:

https://github.com/rust-lang/cargo/issues/6737
https://github.com/alexcrichton/openssl-probe/issues/11
Comment 1 Chris Mayo 2020-04-06 18:19:40 UTC
Fixed in dev-lang/rust-1.42.0:

https://github.com/rust-lang/cargo/issues/6737#issuecomment-609527844