Hi,
On Donnerstag, 19. Juli 2012, Bastian Neuburger wrote:
When I use a git repository as config source for a FAI network install,
FAI exits after trying to setup the config space from git.
Inside /var/lib/fai there were not only the files I checked into the git
repo but also the git control files (e.g. HEAD, refs/).
Those should not be in /var/lib/fai but in /var/lib/fai/.git/
yes, they should. Seems your git repo is configured wrongly. (=as a bare git
repo.)
Maybe I am missing something here, but could you please elaborate on why
the git internal files (HEAD, refs/, etc.) should be in /var/lib/fai and
not inside a .git subdir within that directory?
Especially the hooks directory is interesting here, since it exists
within .git and in the FAI config space, so with the git control files
and the config space in the same directory, this could cause conflicts.
IMO the clone command in get-config-dir-git should check out to
$GIT_DIR, see the patch at
https://github.com/bneuburg/fai/commit/1b567f8c6790176c142f8373446265fa9b4e
00cf
no, that patch is broken+wrong, as it breaks my (and several others) fai+git
usage.
$GIT_DIR is defined as $FAI/.git, and you really dont want your config space
there, but in $FAI.
I agree that the config space should not end up in $FAI/.git but $FAI.
But with the patch I linked to the config space gets checked out to $FAI
and HEAD, refs/ etc. end up in $FAI/.git, so the way I would expect it.
Could you tell me how your git config space is set up?
Cheers,
Bastian
--
Neuburger, Bastian
Telefon: +49-6159-71 1740
Abteilung: IT-Security
GSI Helmholtzzentrum für Schwerionenforschung GmbH
Planckstraße 1
64291 Darmstadt
www.gsi.de
Gesellschaft mit beschränkter Haftung
Sitz der Gesellschaft: Darmstadt
Handelsregister: Amtsgericht Darmstadt, HRB 1528
Geschäftsführung: Professor Dr. Dr. h.c. mult. Horst Stöcker,
Peter Hassenbach
Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph
Stellvertreter: Ministerialdirigent Dr. Rolf Bernhardt
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]