--- /dev/null
+#!/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 -
+
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
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