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

<<attachment: fredrik_eriksson.vcf>>

Antwort per Email an