Fixes many things including wheezy support
Fixes boot_device for wheezy