X-Git-Url: http://git.onelab.eu/?p=wextoolbox.git;a=blobdiff_plain;f=bootstrapfs.post;fp=bootstrapfs.post;h=0000000000000000000000000000000000000000;hp=dd6b93e40b80fd1a7b6b9cd0982b207c001e449c;hb=cf7c6e00a21300e8e3f7f41b1d92b28722220c25;hpb=bdf63b239b1797a572c0dd7f21ea0d32c9564c19 diff --git a/bootstrapfs.post b/bootstrapfs.post deleted file mode 100644 index dd6b93e..0000000 --- a/bootstrapfs.post +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash - -vdir=$1 -if [ -z "${vdir}" ] ; then - echo "ERROR: $0" - echo "Provide the directory of the root filesystem to operate on" - exit -fi - -# NOTE: we're enabling util-vserver to allow it to help shutdown all slices -# before rebooting. This has been problematic in the past. -# Thierry : I'm enabling network since, for some reason, it ends up turned off on fedora9 -for service in network util-vserver; do - chroot ${vdir} /sbin/chkconfig $service on -done - -# Remove unneeded services -for service in vprocunhide vservers-default; do - chroot ${vdir} /sbin/chkconfig $service off -done - -# Disable splaying of cron. -echo > ${vdir}/etc/sysconfig/crontab - -# Add site_admin account -chroot ${vdir} /usr/sbin/useradd -p "" -u 502 -m site_admin - -# NOTE: Removed due to incompatibility between fedora and centos, and b/c we -# expect that enabling util-vserver above will help with shutdown. -# -# : this is added to ensure that processes running within the slices that -# may have special permissions and other parts of the filesystem engated are -# killed before shutdown. We experienced hangs when rebooting without this -# step. -#( cat <