Permalink
Browse files

Move Ubuntu-specific setup to setup.sh

  • Loading branch information...
1 parent 694d4f4 commit 9f629f153e1d2597d8482a8505c2517777478396 Dmitriy Kalinin and Pieter Noordhuis committed Mar 15, 2013
Showing with 9 additions and 8 deletions.
  1. +8 −0 warden/root/linux/base/setup.sh
  2. +1 −8 warden/root/linux/skeleton/setup.sh
View
8 warden/root/linux/base/setup.sh
@@ -125,3 +125,11 @@ EOS
chroot <<-EOS
apt-get install -y build-essential
EOS
+
+# Remove files we don't need or want
+chroot <<-EOS
+rm -f /var/cache/apt/archives/*.deb
+rm -f /var/cache/apt/*cache.bin
+rm -f /var/lib/apt/lists/*_Packages
+rm -f /etc/ssh/ssh_host_*
+EOS
View
9 warden/root/linux/skeleton/setup.sh
@@ -33,15 +33,8 @@ EOS
setup_fs
-# Remove files we don't need or want
-rm -f mnt/var/cache/apt/archives/*.deb
-rm -f mnt/var/cache/apt/*cache.bin
-rm -f mnt/var/lib/apt/lists/*_Packages
-rm -f mnt/etc/ssh/ssh_host_*
-
# Strip /dev down to the bare minimum
-rm -rf mnt/dev
-mkdir -p mnt/dev
+rm -rf mnt/dev/*
# /dev/tty
file=mnt/dev/tty

0 comments on commit 9f629f1

Please sign in to comment.