Statistics
| Branch: | Revision:

root / example / instance-image.d @ c2fca018

# Date Author Comment
c2fca018 03/09/2010 09:15 pm Lance Albertson

Fix logic for when to install grub

1c9956c3 03/09/2010 07:47 pm Lance Albertson

disable grub2 support for now until a solution is found

8000c2d8 03/09/2010 02:49 am Lance Albertson

fix logic for when to install grub

07d32070 02/14/2010 12:39 am Lance Albertson

Fix grub installs for 2.x

  • Add functions for setting up grub devices in the chroot, and adding the
    device.map file
  • Dynamically set the boot and root partition numbers since it changes
    depending on the layout
  • Add device.map file for grub-2.x so that it works correctly
13eb5d4c 02/14/2010 12:03 am Lance Albertson

Move boot_dir higher, and fix TARGET variables

5edb4a94 02/13/2010 02:19 am Lance Albertson

If the grub config is using UUID, ensure it gets updated

Other fixes include only skip setting up grub, don't skip setting up the serial
stuff.

c3d1b43e 02/12/2010 08:07 pm Lance Albertson

Tell sed to follow symlinks

ad81a23e 02/12/2010 07:45 pm Lance Albertson

Fix logic to be correct

9404f8cd 02/12/2010 02:45 am Lance Albertson

Add proper console option to kernel options

Also fix grub-2.x so that it points to the correct file to munge, and also run
update-grub once its done.

91767b54 02/12/2010 01:23 am Lance Albertson

Add support for setting up serial consoles with grub

abade4ea 02/12/2010 12:27 am Lance Albertson

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 ensure
that it gets checked.

09f30efb 02/10/2010 06:47 pm Lance Albertson

Only setup grub if there isn't a kernel set in kernel_path

6f258fa8 02/10/2010 02:40 am Lance Albertson

Clean up interface setup

  • Use INSTANCE_NAME instead of doing a dns lookup
  • Use a short dns name for gentoo instead of fqdn
de32ceea 02/10/2010 02:35 am Lance Albertson

Adjust logic for when to setup grub

Deciding when to setup grub is a pain depending on several situations. If
you're using tarball, you may or may not use a kernel outside of the
install. But if you're importing/exporting, you are still in a similar
situation. This logic should fix it hopefully.

99cc268e 02/06/2010 01:01 am Lance Albertson

Fix logic which determines when to run grub by default

e7a2d1ad 02/05/2010 01:59 am Lance Albertson

Refactor debugging code to be saner and actually work

08abb89f 02/04/2010 08:07 pm Lance Albertson

Move "main" actions below the functions so they know what they are

39855ac4 02/04/2010 02:08 am Lance Albertson

Setup grub (if enabled) during an import

f6f223b8 02/03/2010 11:30 pm Lance Albertson

Move OS detection to common.sh to make it portable for other scripts

Also refactor how we use it in interfaces

e0f1ce56 02/03/2010 11:09 pm Lance Albertson

code cleanup, remove bits we don't use from the debootstrap import

f1afb4b1 02/03/2010 08:23 pm Lance Albertson

Add OSU Copyright headers

c6253116 02/03/2010 08:19 pm Lance Albertson

Force exit on error

6af8a040 02/03/2010 08:19 pm Lance Albertson

Don't remove keys if deploying a debian based image

Debian generates the host keys during the install phase and the init script
doesn't regenerate them if they don't exist and fail. So skip it for now on
these types of systems.

611fa6b0 02/03/2010 08:18 pm Lance Albertson

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 at
least use something.

[1] http://groups.google.com/group/ganeti/browse_thread/thread/948ec6705ae69798

0cba7e2a 02/03/2010 02:54 am Lance Albertson

don't escape characters when setting up the network

b4577d12 02/03/2010 01:54 am Lance Albertson

MAC addresses should always be uppercase

e84e87cd 02/02/2010 11:50 pm Lance Albertson

If debug is set, show commands in log file

b7b2af95 02/02/2010 11:47 pm Lance Albertson

check for OS's inside of the image, not the system itself. doh

c3e07762 02/02/2010 08:47 pm Lance Albertson

Remove GRUB_SETUP and just assume you only need this for tarball image types

e1d2d9bd 02/02/2010 08:44 pm Lance Albertson

Make sure we source common.sh

60484bb3 02/02/2010 08:43 pm Lance Albertson

New script to remove all ssh host keys

cfc6ba79 02/02/2010 08:34 pm Lance Albertson

ensure that net.eth0 is enabled on gentoo

6fc975e1 02/02/2010 08:00 pm Lance Albertson

Add support for setting up networking on Gentoo, Redhat, Debian, and Suse based systems

For now it only supports DHCP

775f4f72 02/02/2010 02:16 am Lance Albertson

rename to correct name