Permalink
Browse files

ignore kernel packages during chef bootstrap

  • Loading branch information...
1 parent 4d18e01 commit e4f697aa04d0fdad619751c2bdd16b601793dfe1 @phlipper phlipper committed Jan 23, 2011
Showing with 11 additions and 1 deletion.
  1. +11 −1 chef/cookbooks/kidsruby/files/default/chef-bootstrap.sh
@@ -19,8 +19,18 @@ command -v chef-solo >/dev/null && {
# Setup vagrant homedir temporarily
mkdir /home/vagrant
-# update the system
+# operate headless
export DEBIAN_FRONTEND=noninteractive
+
+# ignore kernel updates
+echo "linux-generic hold" | dpkg --set-selections
+echo "linux-headers-generic hold" | dpkg --set-selections
+echo "linux-image-generic hold" | dpkg --set-selections
+echo "linux-generic-pae hold" | dpkg --set-selections
+echo "linux-headers-generic-pae hold" | dpkg --set-selections
+echo "linux-image-generic-pae hold" | dpkg --set-selections
+
+# update the system
apt-get update
apt-get dist-upgrade -y

0 comments on commit e4f697a

Please sign in to comment.