Add get_os and get_os_release functions, refacter get_os_type
get_os: Returns the exact operating system
get_os_release: Returns the release of the operating system
Switch get_os_type to use an argument for the target location and also ensurethat it gets checked.
Only setup grub if there isn't a kernel set in kernel_path
Clean up interface setup
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
View revisions
Also available in: Atom