Public bug reported:

etckeeper on xenial does not kick initial commit on its fresh install.
It seems ubuntu patch has debian/etckeeper.postinst over debian/postinst
which has a logic to kick `etckeeper init`.

$ ls -1 etckeeper-1.18.1*/debian/*postinst
etckeeper-1.18.1/debian/postinst
etckeeper-1.18.1ubuntu2/debian/etckeeper.postinst
etckeeper-1.18.1ubuntu2/debian/postinst

[etckeeper-1.18.1ubuntu2/debian/postinst]
     80         if [ "$2" = "" ] && [ -e "/etc/etckeeper/etckeeper.conf" ]; then
     81                 # Fresh install.
     82                 . /etc/etckeeper/etckeeper.conf || true
     83                 if [ -n "$VCS" ] && [ -x "`which $VCS 2>/dev/null`" ]; 
then
     84                         if etckeeper init; then
     85                                 if ! etckeeper commit "Initial commit"; 
then
     86                                         echo "etckeeper commit failed; 
run it by hand" >&2
     87                                 fi
     88                         else
     89                                 echo "etckeeper init failed; run it by 
hand" >&2
     90                         fi
     91                 else
     92                         echo "etckeeper init not ran as $VCS is not 
installed" >&2
     93                 fi
     94         fi

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: etckeeper 1.18.1ubuntu2
ProcVersionSignature: Ubuntu 4.3.0-5.16-generic 4.3.3
Uname: Linux 4.3.0-5-generic x86_64
ApportVersion: 2.19.3-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Jan 11 06:20:50 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-01-09 (1 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160108)
PackageArchitecture: all
SourcePackage: etckeeper
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: etckeeper (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1532615

Title:
  etckeeper init is not executed on initial install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/1532615/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to