From 337071e30fdf50270748e93ab7b6152530d3d3c2 Mon Sep 17 00:00:00 2001 From: ficus Date: Mon, 19 Nov 2012 17:50:17 +0100 Subject: debugging user creation problem --- config/hooks/kernel-image.sh.chroot | 5 +++-- config/hooks/remove-packages.sh.chroot | 6 ------ config/hooks/tor-usergroup.sh.chroot | 17 ----------------- 3 files changed, 3 insertions(+), 25 deletions(-) delete mode 100755 config/hooks/remove-packages.sh.chroot delete mode 100755 config/hooks/tor-usergroup.sh.chroot (limited to 'config/hooks') diff --git a/config/hooks/kernel-image.sh.chroot b/config/hooks/kernel-image.sh.chroot index 2c15971..31dbaf1 100755 --- a/config/hooks/kernel-image.sh.chroot +++ b/config/hooks/kernel-image.sh.chroot @@ -3,9 +3,10 @@ set -e # TODO: this seems to be a null-op... flash-kernel is symlinked to `true`? -echo "Trying to flashing kernel..." +# XXX: remove this +#echo "Trying to flashing kernel..." #/usr/sbin/flash-kernel || echo "Failed to flash kernel! Don't worry, will mangle" -/usr/sbin/flash-kernel +#/usr/sbin/flash-kernel echo "Mangling kernel..." mkdir /tmp/initrd-repack diff --git a/config/hooks/remove-packages.sh.chroot b/config/hooks/remove-packages.sh.chroot deleted file mode 100755 index 0f46ef6..0000000 --- a/config/hooks/remove-packages.sh.chroot +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -echo "Removing unwanted apt packages" -apt-get -f -y remove --purge polipo minissdpd -apt-get -y remove exim4-base exim4-config exim4-daemon-light dbus isc-dhcp-server - diff --git a/config/hooks/tor-usergroup.sh.chroot b/config/hooks/tor-usergroup.sh.chroot deleted file mode 100755 index 67ca241..0000000 --- a/config/hooks/tor-usergroup.sh.chroot +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -echo "Creating tor user and groups" - -export ADMINUSER="tor" -export ADMINGROUP="tor" -export TORADMINGROUP="debian-tor" - -# add users and groups (ignore failures if groups already exist) -addgroup $ADMINGROUP -useradd -g $ADMINGROUP -G $TORADMINGROUP -s /bin/bash $ADMINUSER -# TODO: $ADMINUSER passwd? - -# give Tor permission to modify it's own configuration -chgrp $TORADMINGROUP /etc/tor/ /etc/tor/* -chmod g+rw /etc/tor/ /etc/tor/* - -- cgit v1.2.3