We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ac5076 + 7b6d929 commit 90c8401Copy full SHA for 90c8401
rustup-init.sh
@@ -140,6 +140,14 @@ main() {
140
return "$_retval"
141
}
142
143
+check_proc() {
144
+ # Check for /proc by looking for the /proc/self/exe link
145
+ # This is only run on Linux
146
+ if ! test -L /proc/self/exe ; then
147
+ err "fatal: Unable to find /proc/self/exe. Is /proc mounted? Installation cannot proceed without /proc."
148
+ fi
149
+}
150
+
151
get_bitness() {
152
need_cmd head
153
# Architecture detection without dependencies beyond coreutils.
@@ -237,6 +245,7 @@ get_architecture() {
237
245
;;
238
246
239
247
Linux)
248
+ check_proc
240
249
_ostype=unknown-linux-$_clibtype
241
250
_bitness=$(get_bitness)
242
251
0 commit comments