Package: etckeeper
Version: 0.43
Severity: minor
etckeeper init creates the following hooks for the Darcs backend:
record prehook etckeeper pre-commit -d /etc
record run-prehook
whatsnew prehook etckeeper pre-commit -d /etc
whatsnew run-prehook
I had a chroot which used etckeeper with Darcs. It works:
# chroot /var/tmp/foo darcs whatsnew --summary --repodir /etc
Prehook ran successfully.
A ./.darcsignore
A ./.etckeeper
M ./etckeeper/etckeeper.conf -2 +2
But it gets very confused when run from outside the chroot:
# darcs whatsnew --summary --repodir /var/tmp/foo/etc
fatal: Not a git repository (or any of the parent directories): .git
Prehook failed!
Outside of the chroot, etckeeper is installed using git.
Both the host OS and the chroot guest are running up-to-date sid/amd64.
Changing -d /etc to -d . appears to fail because etckeeper reads
/etc/etckeeper/etckeeper.conf (host OS, uses git), rather than
<directory>/etckeeper/etckeeper.conf (guest chroot, uses darcs).
This issue is merely irritating, so feel free to WONTFIX.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]