issue with /opt #3

Closed
opened 2022-02-14 19:56:24 +01:00 by titolivio · 2 comments

I've been using this program to run mostly Zoom and Mathematica on musl (btw, at some point I can share my mathematica template, but that's another story :), and I've just realised the following:

Since your glibc program does not substitute for /opt, only for /usr, programs like Zoom, which write to /opt, end up in the parent (musl) /opt folder, not in /glibc/opt. Though it works fine, I think this is not optimal, right?

Thanks.

I've been using this program to run mostly Zoom and Mathematica on musl (btw, at some point I can share my mathematica template, but that's another story :), and I've just realised the following: Since your glibc program does not substitute for /opt, only for /usr, programs like Zoom, which write to /opt, end up in the parent (musl) /opt folder, not in /glibc/opt. Though it works fine, I think this is not optimal, right? Thanks.
Owner

Hello, I'm glad to know that the container is useful.
Regarding your doubt, it is true that it would not be optimal, however, that error can be easily fixed by adding a line to the program code, just add the following before or after line 15:

e ("mount", mount (SRC "/opt", "/opt", NULL, MS_BIND, NULL);

With that, the programs like the ones you mention would be mounted on the /opt directory of the container.
Anyway, I already uploaded the modifications that I just commented on the repository.
Greetings

Hello, I'm glad to know that the container is useful. Regarding your doubt, it is true that it would not be optimal, however, that error can be easily fixed by adding a line to the program code, just add the following before or after line 15: ``` e ("mount", mount (SRC "/opt", "/opt", NULL, MS_BIND, NULL); ``` With that, the programs like the ones you mention would be mounted on the /opt directory of the container. Anyway, I already uploaded the modifications that I just commented on the repository. Greetings
Author

Hi, many thanks.
So I will remove those programs, update container, and reinstall them.

Hi, many thanks. So I will remove those programs, update container, and reinstall them.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tuxliban/tutoriales_void#3
No description provided.