post scripts for altering the filesystem for last-minute configuration tweaks
[build.git] / config.planetlab / bootstrapfs.post
1 #!/bin/bash
2
3 vdir=$1
4 if [ -z "${vdir}" ] ; then
5         echo "ERROR: $0"
6         echo "Provide the directory of the root filesystem to operate on"
7         exit
8 fi
9
10 # Remove unneeded services
11 for service in util-vserver vprocunhide vservers-default; do
12     chroot ${vdir} /sbin/chkconfig $service off
13 done
14
15 # Disable splaying of cron.
16 echo > ${vdir}/etc/sysconfig/crontab
17
18 # Add site_admin account
19 chroot ${vdir} /usr/sbin/useradd -p "" -u 502 -m site_admin
20