Fix logic to be correct
Add proper console option to kernel options
Also fix grub-2.x so that it points to the correct file to munge, and also runupdate-grub once its done.
Add support for setting up serial consoles with grub
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
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.
Create IMAGE_DEBUG variable to enable debugging output
DEBUG_LEVEL isn't working yet in ganeti [1], so lets add an option so we can atleast use something.
[1] http://groups.google.com/group/ganeti/browse_thread/thread/948ec6705ae69798
don't escape characters when setting up the network
MAC addresses should always be uppercase
If debug is set, show commands in log file
check for OS's inside of the image, not the system itself. doh
Remove GRUB_SETUP and just assume you only need this for tarball image types
Make sure we source common.sh
New script to remove all ssh host keys
ensure that net.eth0 is enabled on gentoo
Add support for setting up networking on Gentoo, Redhat, Debian, and Suse based systems
For now it only supports DHCP
rename to correct name