Removing /usr/sbin/policy-rc.d on target post install

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Fri Sep 16 12:29:58 CEST 2011


On Fri, 16 Sep 2011, Fredrik Eriksson wrote:
>
> 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

Shorter alternative:

	#!/bin/sh
	rm -f $target/usr/sbin/policy-rc.d



Cheers,

-- 
Cristian


More information about the linux-fai mailing list