#!/bin/sh # # Update squashfs -- assumes you start with a Hardy 8.04.1 desktop, # but it should work even if you have already updated it. # if [ ! -d sqfs ] ; then echo "Cannot find squashfs (sqfs directory)" exit 1 fi chroot sqfs /bin/sh mount -t proc none /proc/ mount -t sysfs non /sys/ export HOME=/root # remove packages apt-get remove --purge `dpkg-query -W --showformat '${Package}\n' | grep language-pack | egrep -v '\-en'` apt-get remove --purge `dpkg-query -W --showformat '${Package}\n' | grep openoffice\.org-` apt-get remove --purge amarok dictionaries-common cat >/etc/apt/sources.list <filesystem.manifest apt-get clean rm -rf /tmp/* rm -f /etc/hosts /etc/resolv.conf umount /proc/ umount /sys/ exit cp sqfs/filesystem.manifest . rm -f sqfs/filsystem.manifest