From: Kern Sibbald Date: Sat, 3 Jan 2009 09:49:50 +0000 (+0000) Subject: Update X-Git-Tag: Release-5.0.3~842 X-Git-Url: https://git.sur5r.net/?p=bacula%2Frescue;a=commitdiff_plain;h=ab27668baea309296d41261111cd0213c291cfb7 Update --- 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