X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=config.planetlab%2Fbootstrapfs.post;h=24371fc976c557307944072bdea24c519de9f1bd;hb=bbbf2d6ba77051088f4440f52944e8a308ec96ba;hp=1de09d7a4f6c86187570cf40a5c5b0f977ba64ef;hpb=2caf6539083f32b51e92e7a984cd9ffe8d5d6805;p=build.git diff --git a/config.planetlab/bootstrapfs.post b/config.planetlab/bootstrapfs.post index 1de09d7a..24371fc9 100644 --- a/config.planetlab/bootstrapfs.post +++ b/config.planetlab/bootstrapfs.post @@ -7,57 +7,48 @@ if [ -z "${vdir}" ] ; then 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 util-vserver vprocunhide vservers-default; do - chroot ${vdir} /sbin/chkconfig $service off +# turn off firstboot if present, might cause the node to hang +for service in vprocunhide vservers-default firstboot; do + chroot ${vdir} /sbin/chkconfig $service off || : done # Disable splaying of cron. echo > ${vdir}/etc/sysconfig/crontab -# sss -# update /etc/sysconfig/network-scripts/ifup -# #if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then - #echo $"Error, some other host already uses address ${IPADDR}." - #exit 1 - #fi - # Add site_admin account chroot ${vdir} /usr/sbin/useradd -p "" -u 502 -m site_admin -( cat <