Statistics
| Branch: | Revision:

root @ 07d32070

# Date Author Comment
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
4a6ab93b 02/14/2010 12:04 am Lance Albertson

Merge branch 'master' of ssh://git.osuosl.org/var/git/ganeti-instance-image

13eb5d4c 02/14/2010 12:03 am Lance Albertson

Move boot_dir higher, and fix TARGET variables

0b56457d 02/13/2010 02:26 am Lance Albertson

deal with serial in karmic since it works differently

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.

49ae2760 02/13/2010 02:18 am Lance Albertson

fix the path for lsb_release

a3e24c37 02/12/2010 08:11 pm Lance Albertson

fix sed command

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

Tell sed to follow symlinks

6f7ac139 02/12/2010 07:58 pm Lance Albertson

Use agetty instead of mingetty

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

Fix logic to be correct

a97ea696 02/12/2010 07:44 pm Lance Albertson

Use lsb_release inside of a chroot of the VM

0877f9c0 02/12/2010 07:40 pm Lance Albertson

use if fi statments otherwise it exits with 1 and fails

ecd82584 02/12/2010 03:29 am Lance Albertson

Add missing $target in setup_fstab for get_os_type

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

9f4b2c31 02/12/2010 01:05 am Lance Albertson

Add support for setting up the console automatically

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.

0d9031a6 02/11/2010 01:14 am Lance Albertson

local can only be used in functions

3903b7f1 02/11/2010 12:48 am Lance Albertson

Add support for setting up /etc/fstab properly

494927a8 02/11/2010 12:07 am Lance Albertson

Fix dynamic partition to use its own function

I discovered that bash wasn't setting the environment variables correctly and
realized I need to refactor how I do this. Now I have a map_partition to figure
out the exact path for a specific partition.

NOTE: fstabs are currently broken because of this addition

9a259787 02/10/2010 08:20 pm Lance Albertson

Remove quotes from device in the sfdisk command

77449e7c 02/10/2010 08:12 pm Lance Albertson

Add optional support for no /boot partition

Allow for more flexibility for which partitions you need or what. It will allow
for four different partition layouts depending on whether you want a swap
partition or booting a kernel outside of the VM.

Also merge the partition mapping for root_dev, boot_dev, & swap_dev entirely...

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.

640e7e45 02/10/2010 02:06 am Lance Albertson

Add initial support for dump/restore based images

314b080b 02/10/2010 01:23 am Lance Albertson

Check both instance name with and without fdqn

7e603c5d 02/09/2010 09:14 pm Lance Albertson

Fix rename

  • Use fqdn instead of common name
  • Strip out "
  • Use correct sed command
4e6bf28c 02/07/2010 02:44 am Lance Albertson

Merge branch 'master' of ssh://git.osuosl.org/var/git/ganeti-instance-image

1b617fb5 02/06/2010 01:42 am Lance Albertson

Create temp directory for dumps

70054ca5 02/06/2010 01:36 am Lance Albertson

add -f to mkswap to remove warning message

8d72e8d8 02/06/2010 01:30 am Lance Albertson

Switch to having dump compress the images on the fly, fix a few bugs too

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

Fix logic which determines when to run grub by default

39b1484a 02/05/2010 11:56 pm Lance Albertson

Improve and fix import/export to using separate dump files and tar

Also condense the code some more and reduce redundancy.

4bafe20b 02/05/2010 07:52 pm Lance Albertson

Don't format the disk during an export (mis-paste on my part)

9d854667 02/05/2010 05:45 am Lance Albertson

Don't format the snapshot, kind of pointless

f0ce6e5a 02/05/2010 02:49 am Lance Albertson

Make regex more clear and only do this on the end of the string

dfec2908 02/05/2010 02:39 am Lance Albertson

Add error checking to ensure we have filesystem types

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

6f0a1fef 02/04/2010 08:05 pm Lance Albertson

Move debug check until after we've sourced common.sh

6161ab06 02/04/2010 02:50 am Lance Albertson

Add rename support

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

Setup grub (if enabled) during an import

74eea044 02/04/2010 02:08 am Lance Albertson

Go ahead and assume that dump will accept ext4. It will fail anyways if it can't

fe46a148 02/04/2010 12:11 am Lance Albertson

Add support for export

103d261e 02/03/2010 11:56 pm Lance Albertson

Add VOL_ID and VOL_TYPE back for export

28b0b56c 02/03/2010 11:51 pm Lance Albertson

Add support for import

cc927a76 02/03/2010 11:47 pm Lance Albertson

Move mkfs into common.sh so that its portable to other scripts

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

4fd821e0 02/03/2010 10:00 pm Lance Albertson

Add documention regarding the partition layout

56ecb1c5 02/03/2010 09:25 pm Lance Albertson

Update README doc

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

3c726318 02/02/2010 09:12 pm Lance Albertson

Fix this correctly

Revert "don't set the DESTDIR"

This reverts commit 05362abf351ae65473c05acad0f924cc91edac1d.

05362abf 02/02/2010 09:01 pm Lance Albertson

don't set the DESTDIR

baca98f3 02/02/2010 08:58 pm Lance Albertson

Adjust image naming scheme to deal with qemu-img image files

ab712029 02/02/2010 08:50 pm Lance Albertson

Check for qemu-img during install

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

916b6dd1 02/02/2010 02:14 am Lance Albertson

change variable name to something more useful

c29e092d 02/02/2010 02:13 am Lance Albertson

fix typo

e21b8802 02/02/2010 02:12 am Lance Albertson

Make it optional whether to create and use a swap partition

3173a4bc 02/02/2010 02:05 am Lance Albertson

rename variable to something more useful

f7959feb 02/02/2010 01:53 am Lance Albertson

Refactor grub install into a custom script

We only need to use grub for tarball based installs since images should include
a disk with grub already installed.

59638dd1 02/01/2010 10:29 pm Lance Albertson

Install custom scripts but don't enable (i.e. -x) them

b05b1ab6 02/01/2010 10:02 pm Lance Albertson

Add basic support for qemu-img based images

Also refactor mounting into a common function

2e0988ec 01/31/2010 07:22 am Lance Albertson

allow for the location of IMAGE_DIR to be changed by the user

f5aa7725 01/31/2010 06:30 am Lance Albertson

fix paths for variants

768954ef 11/29/2009 07:34 am Lance Albertson

Set the $disk variable up

df2ac746 11/29/2009 07:33 am Lance Albertson

Remove extra whitespace, errors out otherwise

2a3ba2bf 11/29/2009 07:18 am Lance Albertson

Add volume label so that CentOS boots

May need to see how other distros need adjustments

89991658 11/29/2009 07:03 am Lance Albertson

Use grub directly to install MBR as grub-install won't work correctly

e5ec11e4 11/28/2009 10:45 pm Lance Albertson

Add support for installing grub for an image

135a14d0 11/28/2009 10:23 pm Lance Albertson

Put umount cleanup command in the correct place

12321cb5 11/28/2009 10:18 pm Lance Albertson

Create $TMPDIR/boot after mounting root

25135be9 11/28/2009 10:16 pm Lance Albertson

Check to make sure the first partition exists

240140b7 11/28/2009 10:15 pm Lance Albertson

Use correct env variable for memory

c4661256 11/28/2009 03:48 am Lance Albertson

Add --with-defaults-dir option

Some distros don't use /etc/defaults

1e57ffdf 11/28/2009 12:06 am Lance Albertson

Create image directory

134c11c3 11/27/2009 11:56 pm Lance Albertson

Add image unpacking feature

a1d43218 11/27/2009 11:31 pm Lance Albertson

Format the 3 volumes and mount them correctly

22b570d6 11/27/2009 09:35 pm Lance Albertson

Create 3 partitions for /boot swap & / by default

0b74a697 11/26/2009 12:08 am Lance Albertson

Clean up Makefile

495d3d0f 11/25/2009 11:53 pm Lance Albertson

Clean out NEWS file

fcce5224 11/25/2009 11:51 pm Lance Albertson

Add basic support for installing via a CD

dcd7b382 11/25/2009 11:41 pm Lance Albertson

remove caching code as its useless for this instance

8d0132dc 11/24/2009 02:51 am Lance Albertson

Check for various important programs and set variables for them

79224631 11/24/2009 02:15 am Lance Albertson

Import from instance-debootstrap 17b5b2da0