the other one won't work as /etc/selinux/targeted is not installed
sounds like even when selinux is turned off, this is required (to turn
off the bloody thing, go figure)
chroot ${vdir} /sbin/chkconfig vprocunhide on || :
# turn OFF selinux if set
-selinuxconf=${vdir}/etc/sysconfig/selinux
-[ -f ${selinuxconf} ] && sed -i -e 's,^SELINUX[ \t]*=.*$,SELINUX=disabled,' ${selinuxconf}
+if [ -f ${vdir}/etc/sysconfig/selinux ] ; then
+ selinuxrpm=$(chroot ${vdir} rpm -qf /etc/sysconfig/selinux)
+ chroot ${vdir} rpm -e --nodeps ${rpm}
+fi
# Disable splaying of cron.
echo > ${vdir}/etc/sysconfig/crontab