diff options
Diffstat (limited to 'config/chroot_local-hooks')
-rwxr-xr-x | config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot | 13 | ||||
-rwxr-xr-x | config/chroot_local-hooks/03-lxde-fixes | 5 |
2 files changed, 11 insertions, 7 deletions
diff --git a/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot b/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot index 6aae943..1de9a67 100755 --- a/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot +++ b/config/chroot_local-hooks/01-remove-gnome-icon-cache.chroot @@ -1,11 +1,14 @@ #!/bin/sh if [ -x /usr/sbin/lightdm ]; then -set -e + # only on i386 + if ! [ -d /lib/x86_64-linux-gnu ]; then + set -e -# Remove GNOME icon cache. -# has to be generated later -# This saves space some space (11MB on K-LXDE) + # Remove GNOME icon cache. + # has to be generated later + # This saves space some space (11MB on K-LXDE) -rm -f /usr/share/icons/*/icon-theme.cache + rm -f /usr/share/icons/*/icon-theme.cache + fi fi diff --git a/config/chroot_local-hooks/03-lxde-fixes b/config/chroot_local-hooks/03-lxde-fixes index c73f876..ac47bc0 100755 --- a/config/chroot_local-hooks/03-lxde-fixes +++ b/config/chroot_local-hooks/03-lxde-fixes @@ -14,8 +14,9 @@ if [ -x /usr/sbin/lightdm ]; then # Industrial conflicts sed -i s/Industrial/Clearlooks-Phenix/ /etc/skel/.gtkrc-2.0 - # on lxde delete packages to reduce image-size + # on lxde i386 delete packages to reduce image-size + if ! [ -d /lib/x86_64-linux-gnu ]; then apt-get purge --yes aptitude aptitude-common apt-get purge --yes vim vim-common vim-runtime - + fi fi |