#1117842 debian-edu-install: there is a leftover /.gitconfig file at the end of the installation

#1117842#5
Date:
2025-10-11 13:37:35 UTC
From:
To:
Hi,

I'm not a user of Debian Edu myself,
but I see it was being tested in OpenQA
and it involves little effort to add proper
suport for it to my own "cruft-ng" QA effort.


These are two lists of volatile files considered normal to be present on Debian Edu systems:

https://sources.debian.org/src/cruft-ng/0.9.75/rules/debian-edu-config
 /etc/chromium/policies/managed/debian-edu-homepage-ldap.json
 /etc/firefox-esr/debian-edu-homepage-ldap.js
 /etc/debian-edu/config
 /etc/default/enable-nat
 /etc/xdg/menus/applications-merged
 /etc/xdg/menus/gnome-applications.menu
 /etc/xdg/menus/lxde-applications.menu
 /etc/xdg/menus/lxqt-applications.menu
 /etc/xdg/menus/mate-applications.menu
 /usr/share/lightdm/lightdm-gtk-greeter.conf.d/02debian-edu.conf
 /var/lib/dovecot
 /var/lib/dovecot/auth_success

https://sources.debian.org/src/cruft-ng/0.9.75/rules/debian-edu-install
 /etc/debian-edu/config
 /etc/debian-edu/xdebian-edu-firstboot
 /var/log/installer/cfengine-edu-install.log


After applying these two heuristics lits in cruft-ng.
There remains these unexplained files hereunder.

The .cf-before-edit & .cfsaved might belong to debian-edu-*
or cfengine3, I don't know.

The /.gitconfig file should _not_ be there.

Any tool needing some git interaction should have used
/tmp/something as a $HOME, and not let little crumbs behind.

Now the three-letters "git" word is not the most pleasant thing to grep for,



 found this.debian-edu-install/tools/edu-etcvcs:    if [ -x /target/usr/bin/etckeeper ] && [ -d /target/etc/.git ]; then



Greetings

Alexandre


https://openqa.debian.net/tests/450264/logfile?filename=cruft-cruft.txt

cruft report: Tue 07 Oct 2025 02:09:09 PM EDT
---- missing: dpkg ----
---- unexplained: / ----
        /.gitconfig           -----------------------------> ????
        /etc/apt/apt.conf.d/00CDMountPoint
        /etc/apt/apt.conf.d/00trustcdrom
        /etc/apt/sources.list~
        /etc/debian-edu/config.cf-before-edit
        /etc/default/grub.cf-before-edit
        /etc/xdg/menus/kf5-applications.menu.cfsaved
        /etc/xdg/menus/xfce-applications.menu.cfsaved
        /var/lib/apt/cdroms.list~
        /var/log/lastlog
end.

#1117842#8
Date:
2026-09-02 19:54:37 UTC
From:
To:
Hello,

Bug #1117842 in debian-edu-install reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu/debian-edu-install/-/commit/be781414f0bda1cf1c74acf27b59d105489172fc
------------------------------------------------------------------------
tools/edu-etcvcs: Drop --global option from etckeeper vcs config command

At this early stage of an installation, when this script is called there
is no HOME variable defined yet and this leads to

```
etckeeper vcs config --global <param> <value>
```

operating on a HOME that falls back to HOME=/.

From Debian Edu perspective, we don't want to meddle with
/root/.gitconfig at all, actually, we just want to tweak the user.name
and user.email value that gets used by etckeeper.

So, let's just drop --global and done.

(Closes: #1117842)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1117842