[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Moving conffiles, inc. rc.boot: take care



I had to redo my configuration of both setserial
(/etc/rc.boot/0setserial) and kbd (/etc/rc.boot/console) because they
didn't take any special action about moving their startup file from
/etc/init.d.

If you move a configuration file it is necessary to take special care
to make sure that the user's configuration is not lost.

The best way is probably to see in the preinst whether the old file
exists, and if it does copy it to the new file's location.  dpkg will
then install the new version of the package and will probably come up
with a conffiles prompt to alert the user to the fact that something
unusual is going on.

Then in the postinst check to see if the old files and links in
/etc/init.d exist and delete them if so.

Ian.


Reply to: