#!/bin/sh
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile

echo "Configure image: [$kiwi_iname]..."

#==========================================
# remove unneded kernel files
#------------------------------------------
#suseStripKernel

#==========================================
# setup gfxboot
#------------------------------------------
#suseGFXBoot SLES isolinux



## <+++++IMAGE CLEANING+++++>
## This section is primarily to delete any extra files from the image, to minimize the size of the final image.
#======================================
# Remove all documentation
#--------------------------------------
if [ -d /usr/share/doc ]; then
rm -rf /usr/share/doc
fi
#======================================
# Remove all info files
#--------------------------------------
if [ -d /usr/share/info ]; then 
rm -rf /usr/share/info
fi

#======================================
# Remove all locales except the ones mentioned below
#--------------------------------------
#baseStripLocales "en_US"


#======================================
# Remove all man pages
#--------------------------------------
baseStripMans


## <+++++END OF IMAGE CLEANING+++++>
#==========================================
# umount /proc
#------------------------------------------
umount /proc &>/dev/null


exit 0
