#1053760 util-linux-extra: obsolete conffiles left behind

Package:
util-linux-extra
Source:
util-linux-extra
Description:
interactive login tools
Submitter:
Sven Joachim
Date:
2026-01-02 12:09:21 UTC
Severity:
normal
Tags:
#1053760#5
Date:
2023-10-10 15:35:29 UTC
From:
To:
Upgrading util-linux-extra from 2.39.2-2 leaves the obsolete conffiles
/etc/init.d/hwclock.sh and /etc/default/hwclock on the system.

Moreover, there are no maintainer scripts anymore to handle the obsolete
init script, so even after purging util-linux-extra broken symlinks in
/etc/rc{S,0,6}.d remain. :-(

#1053760#10
Date:
2023-10-11 20:15:38 UTC
From:
To:
Sven,

It was a conscious decision (on my part) not to remove the conffiles at this
stage. Whilst I accept this leaves cruft on systems that don't have bin:initscripts
installed, it has the benefit that user modified conffiles are preserved during
the transition to initscripts, as required by the Policy.

I think this cleanup can happen saftely in the Forky release cycle.

For reference, the udev maintainers have recently tried this cleanup at an
earlier stage and it has not been straightforward.

Mark

#1053760#13
Date:
2023-10-11 07:21:12 UTC
From:
To:
Sven,

It was a conscious decision (on my part) not to remove the conffiles at this
stage. Whilst I accept this leaves cruft on systems that don't have initscripts
installed, it has the benefit that user modified conffiles are preserved during
the transition to bin:initscripts, as required by the Policy.

I think this cleanup can happen saftely in the Forky release cycle.

For reference, the udev maintainers have recently tried this cleanup at an
earlier stage and it has not been straightforward.

Mark

#1053760#28
Date:
2024-11-16 14:06:32 UTC
From:
To:
Control: tags -1 + help
[..]

On Wed, 11 Oct 2023 Mark Hindley wrote:
| It was a conscious decision (on my part) not to remove the conffiles at this
| stage. Whilst I accept this leaves cruft on systems that don't have initscripts
| installed, it has the benefit that user modified conffiles are preserved during
| the transition to bin:initscripts, as required by the Policy.
|
| I think this cleanup can happen saftely in the Forky release cycle.
|
| For reference, the udev maintainers have recently tried this cleanup at an
| earlier stage and it has not been straightforward.

It is still unclear to me how to tell dpkg that the files moved
between packages and it should not just delete them.

Patches welcome.

Chris

#1053760#33
Date:
2024-11-20 12:23:09 UTC
From:
To:
Chris,

Thanks for including me in this.

Nor me. AFAIK it is not possible at the moment. But it would be a useful dpkg
feature for cases like this.

Guillem,

Are we correct that there is no way to achieve this at the moment?

Mark

#1053760#38
Date:
2025-04-15 10:21:22 UTC
From:
To:
On Sat, 16 Nov 2024 15:06:32 +0100 Chris Hofstaedtler <zeha@debian.org> wrote:
wrote:
as
- so
fact
up
conffiles at this
initscripts
preserved during
cleanup at an

The conffiles were actually removed from util-linux-extra in version
2.39.2-3 (commit 13ccd799bf43106).

So they both appear as obsolete, and associated to util-linux-extra.

They should be cleant using dpkg-maintscript-helper or its frontend in
dh_installdeb (with a util-linux-extra.maintscript file).

#1053760#43
Date:
2025-04-15 17:28:20 UTC
From:
To:
* Sébastien Villemot <sebastien@debian.org> [250415 12:24]:

Please provide a patch for the util-linux(-extra) side, without
breaking the sysvinit/initscripts side.

Chris

#1053760#48
Date:
2025-04-22 08:50:29 UTC
From:
To:
Le mardi 15 avril 2025 à 19:28 +0200, Chris Hofstaedtler a écrit :
is already broken on fresh Debian installs, since the corresponding
conffiles are not provided by any package.

So I think there are only two proper ways of fixing this issue:
– either reinstate the sysvinit/initscripts files in the util-linux-
extra package (at least until the next release cycle)
– or clean the obsolete conffiles (but that will obviously break
sysvinit on upgraded systems as well)

Best wishes,

#1053760#53
Date:
2025-04-22 13:03:52 UTC
From:
To:
* Sébastien Villemot <sebastien@debian.org> [250422 10:54]:

initscripts provides hwclock.sh.

Chris

#1053760#58
Date:
2025-04-23 12:55:33 UTC
From:
To:
Le mardi 22 avril 2025 à 15:03 +0200, Chris Hofstaedtler a écrit :

My understanding is that there is no way to properly handle this
situation with our tooling.

People who have initscripts install can manually fix it with:
# apt reinstall util-linux-extra

People who don’t have initscripts installed can fix it with:
# rm /etc/init.d/hwclock.sh /etc/default/hwclock
# apt reinstall util-linux-extra