4 if [ -z "${vdir}" ] ; then
6 echo "Provide the directory of the root filesystem to operate on"
10 # Cleanup yum config entirely, waiting for the config files to populate this
11 rm -rf ${vdir}/etc/yum.conf ${vdir}/etc/yum.repos.d
13 # NOTE: we're enabling util-vserver to allow it to help shutdown all slices
14 # before rebooting. This has been problematic in the past.
15 # Thierry : I'm enabling network since, for some reason, it ends up turned off on fedora9
16 for service in network util-vserver; do
17 chroot ${vdir} /sbin/chkconfig $service on
20 # Remove unneeded services
21 for service in vprocunhide vservers-default; do
22 chroot ${vdir} /sbin/chkconfig $service off
25 # Disable splaying of cron.
26 echo > ${vdir}/etc/sysconfig/crontab
28 # Add site_admin account
29 chroot ${vdir} /usr/sbin/useradd -p "" -u 502 -m site_admin