- # Remove unneeded services
- for service in util-vserver vprocunhide vservers-default; do
- chroot ${vdir} /sbin/chkconfig $service off
- done
-
- # Disable splaying of cron.
- # At this step, vdir is base, and vref is the set of changes that end up in the nodegroup
- echo > ${vdir}/etc/sysconfig/crontab
+ # optionally invoke a post processing script after packages from
+ # $pkgs have been installed
+ pkgsdir=$(dirname $pkgs)
+ pkgsname=$(basename $pkgs .pkgs)
+ postfile="${pkgsdir}/${pkgsname}.post"
+ [ -f $postfile ] && /bin/bash $postfile ${vdir} || :