Bug#832945: update-rc.d defaults does not respect disabled state of a sysv init script

Michael Biebl biebl at debian.org
Sat Jul 30 21:35:21 BST 2016


Am 30.07.2016 um 20:47 schrieb Michael Biebl:
> Am 30.07.2016 um 19:52 schrieb Felipe Sateler:
>> On 29 July 2016 at 17:05, Michael Biebl <biebl at debian.org> wrote:
>>> Am 29.07.2016 um 22:44 schrieb Michael Biebl:
>>>> Package: init-system-helpers
>>>> Version: 1.41
>>>> Severity: serious
>>>>
>>>> Running
>>>> update-rc.d foo disable
>>>> update-rc.d foo defaults
>>>> will create start symlinks although this should not happen for a
>>>> disabled service.
>>>
>>> This happens when insserv is not installed, so is another regression in
>>> our fallback code.
>>
>> Insserv does not create new links if there are already-existing links
>> for that runlevel. So I think the fix (untested) would be:

...

> I think what insserv does, is to compare the LSB header to what symlinks
>  exist on the disk. If there is a difference, it does nothing at all.
> Your patch behaves slightly different from what I can see.
> It does the check per runlevel and not as a whole.


Just noticed this after upgrading keyboard-setup:

$ ls /etc/rc?.d/???keyboard*
/etc/rcS.d/S01keyboard-setup.sh  /etc/rcS.d/S02keyboard-setup.sh

S02keyboard-setup.sh was the existing symlink which had been created by
insserv. S01keyboard-setup.sh was created by todays update by the
fallback code in update-rc.d.
It's a related but slightly different bug.

Your patch would handle also handle this case. So we should add it in
any case.
The question is, if we also add the additional check, which does nothing
at all, if the symlinks on disk differ from what's in the LSB header.

Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20160730/259b9566/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list