From ed8864bb7a19bf65fdc50c925543a4e20046300e Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 7 Feb 2011 18:46:24 -0500 Subject: [PATCH] sensible (-dev files) and opportunitstic (gnome-core) lightweighting of VM image --- live/auto/config | 2 +- vm/d-i/tools/initial_setup | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/live/auto/config b/live/auto/config index 30bcc3b..c804d4e 100755 --- a/live/auto/config +++ b/live/auto/config @@ -4,7 +4,7 @@ set -eu # the Debian release to use as a basis for the live-cd nd_basedist="squeeze" -nd_version="6.0.0" +nd_version="6.0.1" nd_arch=i386 deb_mirror="http://debproxy:9999" diff --git a/vm/d-i/tools/initial_setup b/vm/d-i/tools/initial_setup index 8261b31..31d0ccd 100755 --- a/vm/d-i/tools/initial_setup +++ b/vm/d-i/tools/initial_setup @@ -76,6 +76,16 @@ apt-get install --no-install-recommends -y \ gnome-themes eog vim \ software-center gdebi gedit-plugins gnome-media synaptic menu less libxp6 +# Clean-up installed development files which got pulled in for some reason +apt-get purge -y libc6-dev +dpkg -l | grep '^ii.*linux-headers' | xargs -r apt-get purge -y + +# Gnome optional pulled by gnome-core: +apt-get purge -y gnome-core evolution-common evolution libevolution + +# And utter cleanup +apt-get autoremove + # intermediate cleanup to prevent virtual harddrive from fragmenting too much find /var/cache/apt/archives/ -name '*.deb' -delete -- 2.39.2