Bug#1042082: Please take over udev SysV init script
Michael Biebl
biebl at debian.org
Mon Sep 4 20:28:03 BST 2023
Am 03.09.23 um 19:25 schrieb Mark Hindley:
> Control: reassign -1 initscripts
>
> Michael,
>
> We have decided that initscripts from src:sysvinit is a better fit for
> /etc/init.d/udev. Therefore reassigning.
>
> I have prepared a branch[1]. The only outstanding item I am aware of is to add
> versioned Breaks/Replaces against the version of udev that no longer ships the
> file.
>
> In my testing of this transition, it became apparent that if udev uses either
> dpkg-maintscript-helper rm_conffile or dpkg remove-on-upgrade, user
> modifications to /etc/init.d/udev are not preserved. So, I would ask that you
> not do that until Forky so we can be sure that any changes to those files are
> correctly preserved.
>
> Can you see any other issues?
>
This doesn't work. Once the ownership of the conffile has moved to
initscripts, the udev package can no longer remove it (in forky), as
this would be an instant RC bug.
So what I'm going to do instead is to a one-time clean-up via
"rm_conffile /etc/init.d/udev" in udev (+ cleaning up the enablement
symlinks in /etc/rc?.d/)
If /etc/init.d/udev was modified, rm_conffile will create a backup file
/etc/init.d/udev.dpkg-bak
You can then adopt this backup file in initscripts, if you want.
What you do with it, is up to you: merge the changes in your init
script, show an info message, etc.
If you want to steal the logic we used in src:systemd to move conffiles
between packages, see e.g.
https://salsa.debian.org/systemd-team/systemd/-/commit/d6483013d57
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20230904/be1c5e7f/attachment.sig>
More information about the Debian-init-diversity
mailing list