fix the minilogd issues with CentOS and older RH releases
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2222
94cd875c-1c1d-0410-91d2-
eb244daf1a30
esac
done
- relink /bin/true halt
popd >/dev/null
pushd "$vdir"/sbin &>/dev/null
popd >/dev/null
pushd "$vdir" &>/dev/null
+ cat <<EOF | $_CHROOT_SH truncate /etc/init.d/halt
+#! /bin/bash
+
+exec /sbin/killall5 -15
+EOF
+ # TODO: remove race/symlink-attack
+ chmod +x etc/init.d/halt
+
: | $_CHROOT_SH truncate /etc/sysctl.conf
echo "none / none defaults" | $_CHROOT_SH truncate /etc/fstab
cat "$__DISTRIBDIR"/redhat/rc.sysinit | $_CHROOT_SH truncate /etc/rc.d/rc.sysinit.vserver