Thierry Carrez wrote: > etckeeper currently runs "etckeeper init" in postinst, as a fix for bug > 505772. However this bug suggested to run both init and commit at > install-time, in order to have a working setup just after the install > command. > > This makes sense especially as the nifty "etckeeper uninit" allows you > to undo both init and commit anyway.
The reason I don't immediatly autocommit is because the user might want to examine the files that etckeeper has added to version control and remove some of them from it, for security or clutter reasons. They also might want to update the VCS's ignore file. It makes sense to let them do so before the initial commit. Of course, the commit will probably happen soon after install anyway, either by the cron job, or by another apt run triggering it. Still, at least this way the user has a window and doesn't need to do a tedious uninit and reinit. -- see shy jo
signature.asc
Description: Digital signature