Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created October 7, 2012 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/3848508 to your computer and use it in GitHub Desktop.
Save Mic92/3848508 to your computer and use it in GitHub Desktop.
Update virtualbox additions in vagrant after upgrading linux kernel using chef
bash "update virtual box additions" do
# http://vagrantup.com/v1/docs/troubleshooting.html
code <<-EOS
/etc/init.d/vboxadd setup
EOS
# FIXME only works as long the kernel version doesn't change!
#not_if do
# # check if vboxsf driver is loaded
# `lsmod` =~ /vboxsf/
#end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment