summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-31 22:41:25 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-31 22:41:49 -0500
commitf117c7aac438c4d3219abee57112cdef04258433 (patch)
tree4e4d8b0f8b7f9a1844380d3de9fb1ffaa6cbb143
parent27f1e6d6763a8a322070c9bdf377bb347896188d (diff)
The move from $workdir/etc to $workdir/chroot/etc confused old installs.
1. It left the old directory around. 2. etc.git has a post-install hook that has the directory hard-coded.
-rw-r--r--Makefile2
-rwxr-xr-xdrain1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0c48056..69e25fb 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# as published by Sam Hocevar. See the COPYING file for more details.
PACKAGE = pristine-etc-keeper
-VERSION = 20170128
+VERSION = 20170131
topsrcdir = .
topoutdir = .
diff --git a/drain b/drain
index c201727..71afb43 100755
--- a/drain
+++ b/drain
@@ -43,6 +43,7 @@ commit() (
(cd chroot/etc && etckeeper init -d "$PWD")
mv chroot/etc/.git etc.git
fi
+ rm -rf etc; ln -sfT chroot/etc etc # for compatibility with old installs
rm -rf chroot
mkdir chroot
cd chroot