/etc/rc omits CMD arguments
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start in /etc/rc and reproduce the issue with a Dockerfile CMD such as ./run.sh arg1 arg2. Trace how that command becomes the /usr/local/bin/nvidia_enrtypoint.sh invocation, then verify that the completed change preserves all CMD arguments when run inside the extracted container.
Written by the indexing model from the issue text.
Description
When I package up a container with enroot that has the following CMD line:
CMD ./run.sh arg1 arg2 arg2
...it results in this command being run by /etc/rc within the extracted container:
exec /usr/local/bin/nvidia_enrtypoint.sh /bin/sh -c ./run.sh arg1 arg2 arg3
Notice the lack of quotes--run.sh is run without arguments, which causes it to die immediately. When I put quotes around ./run.sh arg1 arg2 arg3, or remove /bin/sh -c, it works as expected. From what I've read, that CMD invocation is legitimate, so I would advocate for the removal of /bin/sh -c from the exec command.
- Dominant language
- Shell
- Stars
- 1.1k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/enroot
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
Update Vish to 1.1.5 Openpackage-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oSoWoSo/vOid_Community_repOsitory#144 · 1 comment ·
-
help wanted new command
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tldr-pages/tldr#24151 ·
-
PacReq: Rune IDE Openpackage request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pacstall/pacstall-programs#9402 ·
-
[BUG] ci: the first prefetch-images.sh call runs before shard.txt exists, so it is always a no-op Openbug github-actions
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
update-request
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
msys2/MINGW-packages#31768 ·