Adjust logic for when to setup grub
Deciding when to setup grub is a pain depending on several situations. Ifyou're using tarball, you may or may not use a kernel outside of theinstall. But if you're importing/exporting, you are still in a similarsituation. This logic should fix it hopefully.
Fix logic which determines when to run grub by default
Refactor debugging code to be saner and actually work
Move "main" actions below the functions so they know what they are
Setup grub (if enabled) during an import
Move OS detection to common.sh to make it portable for other scripts
Also refactor how we use it in interfaces
code cleanup, remove bits we don't use from the debootstrap import
Add OSU Copyright headers
Force exit on error
Don't remove keys if deploying a debian based image
Debian generates the host keys during the install phase and the init scriptdoesn't regenerate them if they don't exist and fail. So skip it for now onthese types of systems.
View revisions
Also available in: Atom