Skip to content

rustup install warnings #90369

Closed
Closed
@trollkarlen

Description

@trollkarlen

When running in k8s using gitlab ci flow using docker in docker(dind) for building a container, I get the following issue when using the rustup installer.

/usr/bin/head: error reading '/proc/self/exe': Bad file descriptor
/usr/bin/head: failed to close '/proc/self/exe': Bad file descriptor
rustup: unknown platform bitness
main: line 358: [: : integer expression expected

Looks like /proc/self/exe does not exist or cant be read this leads to issues in this statement:

if [ "${_ostype}" = unknown-linux-gnu ] && [ "${_bitness}" -eq 32 ]; then

Looks like an alternative way of getting the bitsize would be nice, or atleast a check for that this files exist and are readable and that _bitness is not "".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions