From: Thierry Parmentelat Date: Tue, 23 Apr 2013 09:29:58 +0000 (+0200) Subject: somehow slice images up to f14 did have an empty /selinux X-Git-Tag: 5.2.2~37 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d4af95af53a387cba8e0a2ccade6cd4534fb24db;p=build.git somehow slice images up to f14 did have an empty /selinux here we tweak sliceimage.post so that we remove such empty /selinux from guest images --- diff --git a/config.mlab/sliceimage.post b/config.mlab/sliceimage.post deleted file mode 100644 index dabcc1e1..00000000 --- a/config.mlab/sliceimage.post +++ /dev/null @@ -1,24 +0,0 @@ -#!/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 - -# Fix up /etc/init.d/halt -echo "in slice image: fixing /etc/init.d/halt" -cat > ${vdir}/etc/init.d/halt <=16 because there's no /sbin anymore +# but I suspect this is for vserver only.. echo "in slice image: fixing /etc/init.d/halt" cat > ${vdir}/etc/init.d/halt <