start to use latest iproute tag
[build.git] / config.planetbridge / bootstrapfs.post
deleted file mode 120000 (symlink)
index 5f113c003fc66f2f532b97c1f340d75cf5198d81..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../config.planetlab/bootstrapfs.post
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..48fe6af54edeffc72a7c70bbcf1eddbcdd9a8f25
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+vdir=$1
+if [ -z "${vdir}" ] ; then
+       echo "ERROR: $0"
+       echo "Provide the directory of the root filesystem to operate on"
+       exit
+fi
+
+# Cleanup yum config entirely, waiting for the config files to populate this
+rm -rf ${vdir}/etc/yum.conf ${vdir}/etc/yum.repos.d
+
+# 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