History | View | Annotate | Download (3 kB)
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.
Clean up interface setup
Refactor debugging code to be saner and actually work
Move "main" actions below the functions so they know what they are
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
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
Make sure we source common.sh
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