#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

#1117842#13
Date:
2026-09-17 18:21:26 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/99f4d4b4910b2df4e457634dfd60cf0b8d574ce2
------------------------------------------------------------------------
etckeeper: nicer log messages

* Avoid `/.gitconfig`. (Closes: #1117842)
* Warn about misuse of direct `git commit` commands
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1117842

#1117842#16
Date:
2026-09-25 07:07:33 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/1d2f399011113f3b5e850210170beda59cef0b36
------------------------------------------------------------------------
etckeeper: nicer log messages

* Avoid `/.gitconfig`. (Closes: #1117842)
* Warn about misuse of direct `git commit` commands
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1117842

#1117842#19
Date:
2026-09-25 07:25:31 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/1d2f399011113f3b5e850210170beda59cef0b36
------------------------------------------------------------------------
etckeeper: nicer log messages

* Avoid `/.gitconfig`. (Closes: #1117842)
* Warn about misuse of direct `git commit` commands
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1117842

#1117842#24
Date:
2026-09-25 08:23:05 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
debian-edu-install, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1117842@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mike Gabriel <sunweaver@debian.org> (supplier of updated debian-edu-install package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 25 Sep 2026 09:50:27 +0200
Source: debian-edu-install
Architecture: source
Version: 2.13.2
Distribution: unstable
Urgency: medium
Maintainer: Debian Edu Developers <debian-edu@lists.debian.org>
Changed-By: Mike Gabriel <sunweaver@debian.org>
Closes: 1117842 1148259
Changes:
 debian-edu-install (2.13.2) unstable; urgency=medium
 .
   [ Roland Clobus ]
   * debian-edu-profile:
     - Fixed network card counting.
       Network cards are not always ethN any more.
     - Profile: Do not always select LTSP-Server. (Closes: #1148259).
       The LTSP-Server will only be enabled if at least 2 non-wireless network
       cards are detected.
   * tools/edu-etcvcs:
     - Whitespace: normalisation.
     - etckeeper: nicer log messages: avoid `/.gitconfig` (Closes: #1117842);
       warn about misuse of direct `git commit` commands.
Checksums-Sha1:
 1f3653b397d1fa62c87d69eca591e0915ea1c92b 2016 debian-edu-install_2.13.2.dsc
 bc8749080ed56f27888974290e336536da1b5a9f 127796 debian-edu-install_2.13.2.tar.xz
 b2be1a73d83272f28110d981a2d1d935635d17cc 6747 debian-edu-install_2.13.2_source.buildinfo
Checksums-Sha256:
 c21b15a6cfb0061ed94019bc6df63eb358893aac30ecaf88024db4cee81ec91a 2016 debian-edu-install_2.13.2.dsc
 87eb447f5b7e569acffcd34c9b9ac74f16af8ec3d6957ff4da013c81aae0df9e 127796 debian-edu-install_2.13.2.tar.xz
 34ae0cb4e7d5ebe707c6bd20f2a7b79e1fd73d2337d682199895bab8c8c33508 6747 debian-edu-install_2.13.2_source.buildinfo
Files:
 58c448c4f6f226d74bb315a3ecd78b83 2016 misc optional debian-edu-install_2.13.2.dsc
 4a2d2cfe884bbe27ced11c19ce7b1a14 127796 misc optional debian-edu-install_2.13.2.tar.xz
 339271b1cc6e906ec6320e66cecadc09 6747 misc optional debian-edu-install_2.13.2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAmq2KGYVHHN1bndlYXZl
ckBkZWJpYW4ub3JnAAoJEJr0azAldxsx3SoP/jtVTfIseR3JEvxcwyjOgzTSf4jw
hCbTLBe0lKaMnMprCGFxrtKCXyJtr0K0ygPUYUcszsRgkdzb6ukScD4Ph1O1Ue2E
58sj6ZdmHczax3+snfp89aBlrK2NWUm8xJm+idgiA7Xc35Elc2dqjO+12C55h9Jq
pSrJpjLTd+T5l21vON/QtT6FLjyPTKhb/FtapSD1rwFrk1E63ENp7OQweiDoOEah
pWiIvIZbiEGw7yUQxVr/AkE1hqLI3ShIJhHWUzboqxnSbLYIQpKqhvdMuopUgNgR
yJYCXmMYNU8YtJmMZzhztvEHKn0SYwu7P5z4gR/61Ek/ZRvJY7l7AOpOXWbp9KTp
lQIhCclD/tuVx2LGF/V7OcQJy5RVHJ5GWIVB5x8W5so0fku4uGhj+XU93Pea18g6
oXNP59lRmOmEwkT3NNPXU2KFfyYLzxDuGxPOG3Mqi8Dz4Dek+OGlVbcC6BfSj+IB
jlbdQk6uoJ+E3CfsqFfS2WbfJGGXLRkCXrr7qHi4qKZA3C6FVm/zKpmjMg27jGEt
jfcyDMeSvcQxDE89pphoWKMEr8GtPb+0afnlfR2r4MQ05Y8FO0H6egeNEMKWhPVo
Tc88o3GixX4alGfJvNJMHNAlmHnerkxgccqn+a/j4CfQhMIgQiFzC3/dOcy8Y34O
k+6h2poy6GkuCUTb
=R8Ol
-----END PGP SIGNATURE-----