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

fix(remount): correct usrLibMultiarchDir value for 32-bit ARM #259

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

maxbrunet
Copy link
Contributor

@maxbrunet maxbrunet commented Jul 2, 2024

This constant is for 64-bit systems. 32-bit ARM is not supported.
If ever it becomes supported, it should be handled with a usrLib32MultiarchDir constant.

Using /var/empty for unsupported directories like NVIDIA: https://github.com/NVIDIA/libnvidia-container/blob/v1.15.0/src/common.h#L53

Follow up to #258

@johnstcn johnstcn self-assigned this Jul 3, 2024
@johnstcn johnstcn self-requested a review July 3, 2024 09:14
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This directory will never exist as far as I can tell on a 32-bit ARM system. I'm not sure what the wider ramifications of that would be?

@maxbrunet
Copy link
Contributor Author

maxbrunet commented Jul 3, 2024

This directory will never exist as far as I can tell on a 32-bit ARM system. I'm not sure what the wider ramifications of that would be?

Correct, it will never match as a prefix, so nothing should happen. And /usr/lib64 should never appear on a 32-bit system either

Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@johnstcn johnstcn merged commit 0c49e02 into coder:main Jul 3, 2024
4 checks passed
johnstcn pushed a commit that referenced this pull request Jul 5, 2024
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

Successfully merging this pull request may close these issues.

2 participants