[Bug 1532615] Re: etckeeper init is not executed on initial install

Mathew Hodson mathew.hodson at gmail.com
Tue Jan 12 03:24:18 UTC 2016


** Changed in: etckeeper (Ubuntu)
   Importance: Undecided => Medium

** Changed in: etckeeper (Ubuntu)
   Importance: Medium => Low

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

Title:
  etckeeper init is not executed on initial install

Status in etckeeper package in Ubuntu:
  Confirmed

Bug description:
  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)

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



More information about the Ubuntu-sponsors mailing list