From 8085e28ff1ae316e49b843a342e6f018b7ba9750 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 31 Jan 2011 16:11:38 +0100 Subject: [PATCH] turn off NetworkManager if present --- config.planetlab/bootstrapfs.post | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/config.planetlab/bootstrapfs.post b/config.planetlab/bootstrapfs.post index e26a1d75..9ceb582f 100644 --- a/config.planetlab/bootstrapfs.post +++ b/config.planetlab/bootstrapfs.post @@ -11,14 +11,16 @@ fi rm -rf ${vdir}/etc/yum.conf ${vdir}/etc/yum.repos.d # Tweaking services +# turn OFF firstboot if present, might cause the node to hang +chroot ${vdir} /sbin/chkconfig firstboot off || : # NOTE: we're enabling util-vserver to allow it to help shutdown all slices # before rebooting. This has been problematic in the past -chroot ${vdir} /sbin/chkconfig util-vserver on -# enabling network; it ends up turned off starting with fedora9, probably related to NetworkManager -chroot ${vdir} /sbin/chkconfig network on +chroot ${vdir} /sbin/chkconfig util-vserver on || : +# enabling network as it ends up turned off on systems that come with NetworkManager, starting with fedora9 +chroot ${vdir} /sbin/chkconfig network on || : +# and turn off NetworkManager if present, as it quite obviously messes with network +chroot ${vdir} /sbin/chkconfig NetworkManager off || : -# turn OFF firstboot if present, might cause the node to hang -chroot ${vdir} /sbin/chkconfig firstboot off || : # turn OFF vservers-default ; this is to automatically restart vservers, let nm do that chroot ${vdir} /sbin/chkconfig vservers-default off || : # turn ON vprocunhide ; is required with kernels that have CONFIG_VSERVER_PROC_SECURE enabled -- 2.47.0