git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git server, chroot, git gc --auto and "uname: not found"

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 5, 2013, 16:37 UTC
Message-ID
<vpqip1sfr93.fsf@anie.imag.fr>
Hi,

I'm having issues with a Git hosting in a chroot (based on fusion forge). The problem is that receive-pack triggers a "git gc --auto", which itself triggers a "git repack", which is a shell-script.

The shell script needs basic commands [1], which are not available within the chroot.

Is there a clean solution to this problem?

I guess the right solution is "send a patch that ports git-repack.sh to C" (I thought we already had the server-side in C only, but just discovered it isn't the case), but I wont have time for that (not soon at least).

Thanks,

[1] uname, used in git-sh-setup, and then /bin/rm /usr/bin/find /bin/sed /usr/bin/tr /bin/mkdir /bin/chmod and /bin/mv according to strace.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Message 1 of 1 in “Git server, chroot, git gc --auto and "uname: not found"”
  1. Matthieu MoyJun 5, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.