From: Thierry Parmentelat Date: Fri, 17 May 2013 10:02:31 +0000 (+0200) Subject: try out nodemanager with /bin in PATH X-Git-Tag: 5.2.3~35 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bdff38315032969f6b402079d5cb4948292411bd;p=build.git try out nodemanager with /bin in PATH --- diff --git a/config.lxc/sliceimage.post b/config.lxc/sliceimage.post new file mode 100644 index 00000000..2bc8c04e --- /dev/null +++ b/config.lxc/sliceimage.post @@ -0,0 +1,31 @@ +#!/bin/bash + +vdir=$1 + +if [ -z "${vdir}" ] ; then + echo "ERROR: $0" + echo "Provide the directory of the root filesystem to operate on" + exit +fi + +# reset root password to be empty +echo "in slice image: resetting root password" +sed -i -e "s/root:[\*|x]/root:/" ${vdir}/etc/passwd + +# modify the sudoers file to remove the 'requiretty' attribute +echo "in slice image: removing requiretty from /etc/sudoers" +sed -i -e 's,^\(Defaults.*requiretty\),#\1,' ${vdir}/etc/sudoers + +# make sure we do not end up with an empty /selinux +# libvirt gets all confused when that happens +cd ${vdir} +if [ -d selinux ] ; then + if [ "$(ls -A selinux)" ] ; then + echo "sliceimage.post: WARNING: ${vdir}/selinux is not empty - preserving" + else + echo "sliceimage.post: REMOVING empty ${vdir}/selinux" + rmdir selinux + fi +fi +cd - + diff --git a/lxc-tags.mk b/lxc-tags.mk index 620b4689..058eee3f 100644 --- a/lxc-tags.mk +++ b/lxc-tags.mk @@ -8,7 +8,7 @@ ipfw-GITPATH := git://git.code.sf.net/p/dummynet/code@ipfw-20 nodeupdate-GITPATH := git://git.planet-lab.org/nodeupdate.git@nodeupdate-0.5-10 PingOfDeath-SVNPATH := http://svn.planet-lab.org/svn/PingOfDeath/tags/PingOfDeath-2.2-1 plnode-utils-GITPATH := git://git.planet-lab.org/plnode-utils.git@plnode-utils-0.2-2 -nodemanager-GITPATH := git://git.planet-lab.org/nodemanager.git@nodemanager-5.2-2 +nodemanager-GITPATH := git://git.planet-lab.org/nodemanager.git@master # pl_sshd-SVNPATH := http://svn.planet-lab.org/svn/pl_sshd/tags/pl_sshd-1.0-11 codemux-GITPATH := git://git.planet-lab.org/codemux.git@codemux-0.1-15 diff --git a/onelab-tags.mk b/onelab-tags.mk index 87884892..019873f9 100644 --- a/onelab-tags.mk +++ b/onelab-tags.mk @@ -22,7 +22,7 @@ util-vserver-pl-GITPATH := git://git.onelab.eu/util-vserver-pl.git@util- nodeupdate-GITPATH := git://git.onelab.eu/nodeupdate.git@nodeupdate-0.5-10 PingOfDeath-SVNPATH := http://svn.planet-lab.org/svn/PingOfDeath/tags/PingOfDeath-2.2-1 plnode-utils-GITPATH := git://git.onelab.eu/plnode-utils.git@plnode-utils-0.2-2 -nodemanager-GITPATH := git://git.onelab.eu/nodemanager.git@nodemanager-5.2-2 +nodemanager-GITPATH := git://git.onelab.eu/nodemanager.git@master pl_sshd-SVNPATH := http://svn.planet-lab.org/svn/pl_sshd/tags/pl_sshd-1.0-11 codemux-GITPATH := git://git.onelab.eu/codemux.git@codemux-0.1-15 fprobe-ulog-GITPATH := git://git.onelab.eu/fprobe-ulog.git@fprobe-ulog-1.1.4-2