#!/bin/bash
#======================================
# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile

#======================================
# Greeting...
#--------------------------------------
echo "Configure image: [$kiwi_iname]..."

#======================================
# Activate services
#--------------------------------------
#suseActivateDefaultServices
#suseRemoveService sshd
#suseRemoveService gpm
#suseRemoveService nfs

#======================================
# Setup baseproduct link
#--------------------------------------
#suseSetupProduct

#======================================
# Add missing gpg keys to rpm
#--------------------------------------
#suseImportBuildKey



#==========================================
# remove unneeded packages
#------------------------------------------
#rpm -e --nodeps --noscripts \
#	$(rpm -q `baseGetPackagesForDeletion` | grep -v "is not installed")
        
#======================================
# Remove all documentation
#--------------------------------------
baseStripDocs

#========================
# Install strace in initrd
#-------------------------
#baseSetupBusyBox -f /usr/bin/strace

##### Hacks to get the build running - Praveen
ln -s /sbin/mksquashfs /usr/bin/mksquashfs

#####

## To make sure selinux is propley enabled, and handling https://bugzilla.redhat.com/show_bug.cgi?id=449420  bug, 
/usr/sbin/genhomedircon

## Enabling iptables service by default.
/sbin/chkconfig iptables on

#======================================
# SuSEconfig
#--------------------------------------
#suseConfig

#======================================
# Umount kernel filesystems
#--------------------------------------
baseCleanMount

exit 0
