#!/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/resolv.conf </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 echo "Warning!!!! At this point, it may be better to reboot, since" echo " upgrading packages may have restarted some daemons such as" echo " cups, which uses sqfs/proc. If you thn try to pack the sqfs" echo " you will get lots of errors reference /proc. Rebooting" echo " resolves this problem." echo " "