Statistics
| Branch: | Revision:

root @ 9014a39d

# Date Author Comment
84472880 11/22/2010 01:15 am Lance Albertson

Ticket #207: Copy files into instances using overlays

9014a39d 11/22/2010 01:15 am Lance Albertson

Ticket #1749: Fix IMAGE_DEBUG to accept "yes" for enabling the feature

9cdb305c 09/08/2010 01:48 am Lance Albertson

fix typo mentioned in Issue #99 and rename defaults -> default

e1f62f2d 09/08/2010 01:28 am Lance Albertson

Include debian package files for building deps (Issue #93)

Thanks to Ed Lim for the patch!

549118f0 09/08/2010 01:20 am Lance Albertson

Change the customization directory

Align with other upstream packages. See commit f79e471d in instance-debootstrap
for more explaination.

c142f9cf 06/20/2010 03:42 am Lance Albertson

example kickstart/preseed files

928de7e8 05/23/2010 02:44 am Lance Albertson

fix typo

564eaa79 05/07/2010 09:20 pm Lance Albertson

Release 0.4

251bf5a4 05/07/2010 09:14 pm Lance Albertson

update documentation

be751693 05/07/2010 07:48 pm Lance Albertson

switch default image type to dump

c40fd6ae 05/07/2010 07:04 pm Lance Albertson

misc fixes to grub settings

  • Fix the CMDLINE code for grub2 so that you can add additional arguments later
  • Enable showing of the hidden menu in grub2 so we can choose other kernels more easily
  • Add ability to add artibrary kernel boot args from a variant file...
c838e846 05/07/2010 06:53 pm Lance Albertson

Add partial grub2 support

We still cannot run update-grub inside of the chroot so all the settings we
changed will not be updated. Running update-grub after the instance is online
should fix this issue. I plan to open a bug to try and get this fixed upstream...

3e1d9348 04/13/2010 02:22 am Lance Albertson

Release 0.3.1

1c571a34 04/13/2010 02:07 am Lance Albertson

sync filesystems prior to umounting

There's an annoying upstream bug with ext4 currently that makes umount's take a
long time to complete [1]. Its also good practice to do this anyways.

[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/543617

6fc42d4e 04/03/2010 02:14 am Lance Albertson

check to make sure the device actually exists

6283359b 04/03/2010 12:53 am Lance Albertson

Release 0.3

6cee02d4 04/03/2010 12:50 am Lance Albertson

Add documentation for the new static IP feature

21136223 04/03/2010 12:25 am Lance Albertson

Move variants.list to /etc and create a symlink back to /usr/share

add6b6bf 04/01/2010 12:42 am Lance Albertson

fix typo

2566fc23 04/01/2010 12:38 am Lance Albertson

rename directory to hooks to line up with upstream

a04a3ce8 04/01/2010 12:30 am Lance Albertson

Fix typoes and missing closing fi's

7193962d 03/31/2010 08:52 pm Lance Albertson

add missing variable

276c74b6 03/31/2010 03:20 am Lance Albertson

Add support for setting IPs statically

e8343ddd 03/31/2010 12:24 am Lance Albertson

Release 0.2

c68199e5 03/31/2010 12:23 am Lance Albertson

Add and update changelog

4c96e490 03/30/2010 11:10 pm Lance Albertson

Add ability to set the filesystem to either ext3 or ext4

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

Add ability to manually set the size of the swap partition

cb8a342a 03/12/2010 12:19 am Lance Albertson

update gitignore

5fd109dc 03/12/2010 12:17 am Lance Albertson

Add AUTHORS file

3a58e5d7 03/12/2010 12:16 am Lance Albertson

Update documentation with dump details and other misc fixes

7ff088a6 03/10/2010 02:28 am Lance Albertson

cleanup kpartx after we're done

2f086264 03/10/2010 02:17 am Lance Albertson

Install the helper scripts into the instance os scripts directory under tools

2b851a1c 03/10/2010 02:05 am Lance Albertson

Add optional helper scripts for creating image dumps

0507e825 03/10/2010 01:20 am Lance Albertson

Add optional helper scripts for mounting nodes automatically

c2fca018 03/09/2010 09:15 pm Lance Albertson

Fix logic for when to install grub

9d35a15e 03/09/2010 08:13 pm Lance Albertson

fix typo

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

disable grub2 support for now until a solution is found

230410df 03/09/2010 02:57 am Lance Albertson

fix regex to be more aggresive when fixing serial on ubuntu

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
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.