Your message dated Wed, 22 Jul 2026 11:04:23 +0000
with message-id <[email protected]>
and subject line Bug#1137075: fixed in greetd 0.10.3-6
has caused the Debian Bug report #1137075,
regarding greetd: missing debconf for $DEFAULT_DISPLAY_MANAGER (sysvinit)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1137075: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1137075
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: greetd
Version: 0.10.3-5
Severity: normal
X-Debbugs-Cc: [email protected]
Hello,
thanks for maintaining greetd on Debian :)
(this is roughly the equivalent of #1023982, for sysvinit and other
inits that use the DEFAULT_DISPLAY_MANAGER variable like runit)
while testing the sysvinit script I noticed that it checks for
$DEFAULT_DISPLAY_MANAGER (like each other sysv script for a display
manager in Debian) but there is no debconf question on install that
asks for the default default display manager.
As a result:
if greetd is the only one/first display manager installed on the
system the /etc/X11/default-display-manager file is not found and greetd
starts;
if another display manager is/was installed, /etc/X11/default-display-manager
file is found and is either empty or has the path for another display manager
and greetd is not started.
The workaround is to echo /usr/sbin/greetd > /etc/X11/default-display-manager
but that is not how this mechanism is supposed to work; for comparison other
display manager have a debconf question on install that ask for the desired
default
dm among a list (and writes the path in the file).
this is a mechanism intended to prevent the start of two dm at the same time.
I don't have a proper patch, but I think roughly:
* add a dependency on debconf (>=0.5) | debconf-2.0
* add a template, debian/greetd.templates (just copy the one from
lightdm or sddm, changing the name and path to greetd)
* add code to handle the debconf question in postinst
* add code to for debconf to remove greetd from the list of
available dm in prerm
all other dm handle this in a similar way, I'm attaching lightdm
postinst and prerm debconf snippets as example
Thanks,
Lorenzo
---postinst---
THIS_PACKAGE=lightdm #NOTE should be changed to greetd
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
# debconf is not a registry, so we only fiddle with the default file if it
# does not exist
if [ ! -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
if db_get shared/default-x-display-manager; then
# workaround debconf passthru bug (#379198)
if [ -z "$RET" ]; then
$RET="$THIS_PACKAGE"
fi
if [ "$THIS_PACKAGE" != "$RET" ]; then
echo "Please be sure to run \"dpkg --configure $RET\"."
fi
if db_get "$RET"/daemon_name; then
echo "$RET" > $DEFAULT_DISPLAY_MANAGER_FILE
fi
fi
fi
# remove the displaced old default display manager file if it exists
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" ]; then
rm "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp"
fi
# debconf hangs if lightdm gets started below without this
db_stop || true
----------
---prerm---
THIS_PACKAGE=lightdm #NOTE should be changed to greetd
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
if [ "$1" = "remove" -o "$1" = "deconfigure" ]; then
if [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
# disown this question
db_unregister shared/default-x-display-manager || true
# does the question still exist?
if db_get shared/default-x-display-manager; then
db_metaget shared/default-x-display-manager owners
db_subst shared/default-x-display-manager choices "$RET"
db_get shared/default-x-display-manager
# are we removing the currently selected display manager?
if [ "$THIS_PACKAGE" = "$RET" ]; then
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
db_get "$RET"/daemon_name
if [ "$(cat $DEFAULT_DISPLAY_MANAGER_FILE)" = "$RET" ]; then
rm "$DEFAULT_DISPLAY_MANAGER_FILE"
fi
fi
# ask the user to choose a new default
db_fset shared/default-x-display-manager seen false
db_input critical shared/default-x-display-manager || true
db_go
# if the display manager file doesn't exist, write it with the path
# to the new default display manager
if [ ! -e $DEFAULT_DISPLAY_MANAGER_FILE ]; then
db_get shared/default-x-display-manager
echo "Please be sure to run \"dpkg-reconfigure $RET\"."
db_get "$RET"/daemon_name
echo "$RET" > "$DEFAULT_DISPLAY_MANAGER_FILE"
fi
fi
fi
fi
fi
--------------------------------
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.17.9+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: runit (via /run/runit.stopit)
Versions of packages greetd depends on:
ii adduser 3.155
ii init-system-helpers 1.69
ii libc6 2.42-16
ii libgcc-s1 16.1.0-1
ii libpam0g 1.7.0-5+b2
greetd recommends no packages.
Versions of packages greetd suggests:
pn wlgreet <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: greetd
Source-Version: 0.10.3-6
Done: Marc Dequènes (Duck) <[email protected]>
We believe that the bug you reported is fixed in the latest version of
greetd, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Marc Dequènes (Duck) <[email protected]> (supplier of updated greetd 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 22 Jul 2026 19:48:46 +0900
Source: greetd
Architecture: source
Version: 0.10.3-6
Distribution: unstable
Urgency: medium
Maintainer: Marc Dequènes (Duck) <[email protected]>
Changed-By: Marc Dequènes (Duck) <[email protected]>
Closes: 1023982 1137070 1137075 1140127
Changes:
greetd (0.10.3-6) unstable; urgency=medium
.
[ Andrew Bower ]
* Identify service as providing -display-manager sysvinit facility.
.
[ Luca Boccassi ]
+ Stop deleting system user and group on purge (for security reasons).
* Install and use sysusers.d/tmpfiles.d config files
.
[ Marc Dequènes (Duck) ]
* Update PAM configuration to include common-* instead of login
(Closes: #1140127).
* Support display-manager selection for systemd and sysinit systems
(Closes: #1023982, #1137075).
* Do not stop on upgrade or start after install for sysinit too
(Closes: #1137070).
* Add status action to the init script.
* Convert watch file to uscan format v5 (deb822).
* Bump Standards-Version to 4.7.4 (no changes).
Checksums-Sha1:
7c6b0215fb99cd537a6e59c340392cfe0384ab54 2230 greetd_0.10.3-6.dsc
948533967b888dd9fc293526e20d7d58c551f22c 27300 greetd_0.10.3-6.debian.tar.xz
9868092023ac9a990ee87e62bc27e8f663d14213 15318 greetd_0.10.3-6_amd64.buildinfo
Checksums-Sha256:
bc3594c117dea95f3bf088da29091eea07aae19cdecf8daebee249c9ef8b7864 2230
greetd_0.10.3-6.dsc
8d2c7e922e71634a66b40d625f3f9a326b56cd304fb1733323d99434febadbd1 27300
greetd_0.10.3-6.debian.tar.xz
86874b7d6f359a740b088ccf3f114ca2ca63c135019024b76bd8d31f35b2f243 15318
greetd_0.10.3-6_amd64.buildinfo
Files:
cd32d35bf3120fd7e7194b21796906f2 2230 misc optional greetd_0.10.3-6.dsc
8261f3e7e88c13f6b75b68403908c6fb 27300 misc optional
greetd_0.10.3-6.debian.tar.xz
ed996c014be883e05f8b1083ada437e4 15318 misc optional
greetd_0.10.3-6_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEcpcqg+UmRT3yiF+BVen596wcRD8FAmpgoJ4ACgkQVen596wc
RD8jSA/+NHHL8Lp+UR21HBsv/bJaB/1Hx55ot4K025ZaDnnF1UAytzqzUZ+G2Uss
s0wR919wFBoJ8JBkz8iaAiL3/aP19aAofg2neM7j2ZKv0Aw8M/+VZhD0hRtkV+bW
lpJFHx7QkGBiIHvy9BzFweGRPGpmb0xi8hlClDfmGzStZ8j+8dL0LCrA4g7LfSlp
CUUDT5Y6RWIwy+EFsuzfyEP9iUgOVE+YOu7dAZ1BcHfGym0AgtwuDzuNK5yCUW6Q
QBMGSChV87QmbLHimu2pMnQoZRdKfmixMv0bKQucgPFIE5sRc33Bc2XICmvyskUI
2riqgm49EePMUKh9grcHC6Xy3t7AD9IQOsjgNKyweHs4GdriiGpm5AvMc4GIhvfX
mQEt37q+6klHm79JcQazKgr+PSSa4UCctXa9wrATUe4SI5x/fOq04ANcSpkpPWLe
QcTCkY3BW7IuDrlj6W/hS2HItOvzI2gkQ02THxBx/Tl2sQajfRUToBC/62WQ9qXU
7En6zuuV/2UdwdDmXrc7HUg85zMb74929dJ4mfBtakS+ebbsFbWCB4t2O4HVbxOw
YFNRslo8sGQ4/n5YdAJkYwq8I9DmhLCAOpufeMh6rjGe0DfofJ4CMhVmo38SJL/5
MDV4b1aO8hcm4dqNj/dgphYr97+OSA4A7aiEtNOAeoyBdGqhtmE=
=5LER
-----END PGP SIGNATURE-----
pgppZpC3KhYgT.pgp
Description: PGP signature
--- End Message ---