From ab27668baea309296d41261111cd0213c291cfb7 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 3 Jan 2009 09:49:50 +0000 Subject: [PATCH] Update --- rescue/linux/usb/removepackages | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rescue/linux/usb/removepackages diff --git a/rescue/linux/usb/removepackages b/rescue/linux/usb/removepackages new file mode 100644 index 0000000..8489968 --- /dev/null +++ b/rescue/linux/usb/removepackages @@ -0,0 +1,41 @@ +#!/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 -- 2.39.5