Removing /usr/sbin/policy-rc.d on target post install
Fredrik Eriksson
fredrik.eriksson at axis.com
Fri Sep 16 11:54:57 CEST 2011
Hi,
We noticed we had problems with servers and workstations not restarting
services, when upgrading packages, as they should. We learnt that the small
shell script /usr/sbin/policy-rc.d was the culprit.
I tried to remove it with a $FAI_CONFIGDIR/scripts/LAST/////99-no_policy-rc.d
script, but I later noticed that it was restored by fai-divert at task_finish,
Removing 'diversion of /usr/sbin/policy-rc.d to /usr/sbin/policy-rc.d.distrib by fai'
So i put this in $FAI_CONFIGDIR/hooks/faiend.DEFAULT
#! /bin/sh
if [ -e $target/usr/sbin/policy-rc.d ]; then
rm $target/usr/sbin/policy-rc.d
fi
I'm wondering if this is the best practice and also if having the file
policy-rc.d during installation could be potentially negative.
The policy-rc.d file was introduced in our system when we started building
basefiles with pbuilder in order to have a cron.weekly job do a regular
update of all basefiles.
--
Fredrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fredrik_eriksson.vcf
Type: text/x-vcard
Size: 128 bytes
Desc: not available
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20110916/fc746b73/attachment.vcf>
More information about the linux-fai
mailing list