#!/bin/sh # # Update squashfs # chroot sqfs /bin/sh mount -t proc none /proc/ mount -t sysfs non /sys/ export HOME=/root 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-` 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