_ [debian] sysv-rc vs unicon-tools

なにやら最近の sysv-rc が

info: Checking if it is safe to convert to dependency based boot.
error: Unable to migrate to dependency based boot sequencing.
error: Problems detected:
 package timidity left obsolete init.d script behind,
 package nfs-common removed but not purged,
 package nfs-kernel-server removed but not purged,
 package open-vm-tools removed but not purged,
 package portmap removed but not purged,
 package tor removed but not purged,
 insserv: warning: script 'S32unicon-tools' missing LSB tags and overrides,
 insserv: warning: script 'unicon-tools' missing LSB tags and overrides,  

と言い出してるが、The future of the boot system in Debian とかの件かな? remove で残ってる init scripts に関しては purge はしないで rm で消してみた。timidity は #538967 で何度も直されてるけど残ってるな…どうせ起動してないし rm で消した。 で、残るは unicon-tools、これは自分で直さねば。Dependency based boot sequence を見ると Lintian Tag: init.d-script-missing-lsb-section に誘導され、さらに How to LSBize an Init Script に誘導される。 ….とりあえず kvm の init script をパクって、

### BEGIN INIT INFO
# Provides:             unicon
# Required-Start:
# Required-Stop:
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    unicon init script
# Description:          This script loads the kernel modules needed by unicon
### END INIT INFO

を書いて、dpkg-reconfigure sysv-rc してみる。お、通った。

This migration process is non-reversible. The legacy way of ordering boot scripts using static sequence numbers will be made obsolete by choosing to migrate.  Any boot sequence changes done locally will be lost and have to redone using dependencies.

と警告されるが、

Migrate legacy boot sequencing to dependency based sequencing?

との問いには YES。

info: Reordering boot system, log to /var/lib/insserv/run-20090916T0031.log
success: Enabled dependency based boot system.

となって完了。/etc/rc?.d/ 以下、かなりすっきりしたなー…。 unicon-tools パッケージの作り直しはまた後日。