Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move Ubuntu-specific setup to setup.sh

  • Loading branch information...
commit 9f629f153e1d2597d8482a8505c2517777478396 1 parent 694d4f4
Dmitriy Kalinin and Pieter Noordhuis authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.