Statistics
| Branch: | Revision:

root / common.sh.in @ fbf11f1c

History | View | Annotate | Download (14.9 kB)

# Date Author Comment
fbf11f1c 07/11/2011 07:08 pm Nikos Skalkotos

Force the use of 128 bytes inode size in ext?

This is needed by some GRUB legacy versions like the one shipped with
CentOS 5.x

6f3e718d 07/11/2011 07:02 pm Nikos Skalkotos

Generalize filesystem autorelabeling enforcement

Autorelabeling is needed by all redhat derived OSs, not just fedora.
Also, rename filesystem_check routine to epilogue

67951e4e 07/11/2011 06:54 pm Nikos Skalkotos

Add code to detect Ubuntu OS in get_os

Check /etc/lsb-release to detect ubuntu systems. Also completely remove
/usr/bin/lsb_release execution to detect os. There are systems like
Ubuntu Server that have an executable /usr/bin/lsb_release that does not
return usefull information and this makes os detection buggy.

df24aef4 07/11/2011 06:37 pm Nikos Skalkotos

Insert a new BOOT variable in common.sh

This variable instructs ganeti-instance-image wheather or not to create
a boot partition in the instance creation process.

171aea62 07/11/2011 06:20 pm Nikos Skalkotos

Fixed a bug in cleanup

The bug had to do with getting errors in device-mapper about resources
being busy when trying to use "kpartx -d" in devices that hosted
previously unmounted ntfs partitions.

47e547ca 05/27/2011 04:23 pm Nikos Skalkotos

Fixed support for recent Fedora images

Fixed a bug in the common.sh where the presence or absence of
`lsb_release' program inside the image was not properly detected.

Forced filesystem relabeling in the initial boot of a Fedora image.
This is needed by SELinux in recent Fedora releases, because in any other...

9870171e 05/26/2011 11:39 am Constantinos Venetsanopoulos

Merge git://git.osuosl.org/gitolite/ganeti/ganeti-instance-image

93fa6b1e 05/25/2011 11:20 pm Lance Albertson

Ticket #4785: Set cache file to /dev/null to disable caching with blkid

We've had a constant problem with blkid not returning anything and thus erroring
out installs/reinstalls, etc. It was discovered that it cached this content by
default which was the root cause. Hopefully this will resolve that issue.

8e5449f1 05/25/2011 01:57 pm Constantinos Venetsanopoulos

Added the img_format OS parameter

ab462591 05/20/2011 12:39 pm Constantinos Venetsanopoulos

Initial commit to extend ganeti-instance-image

Ganeti Instance Image will be extended to support
Ganeti OS Interface v20. The scope is to have an OS provider
that takes OS parameters from Ganeti and then uses them to customize
the Image creation process. The initial commit includes:...

2146dd61 03/25/2011 07:50 pm Lance Albertson

Add "sync" after running mkfs/mkswap

78422bb3 03/25/2011 07:45 pm Lance Albertson

Reduce normal commands output by redirecting to /dev/null

Much of the commands we run (i.e. mkfs, mkswap, sfdisk) produce output that
isn't really needed.

99efa839 03/11/2011 02:23 am Lance Albertson

Ticket #3687: Add --DOS flag to give better support for grub2

828670a1 03/11/2011 01:30 am Lance Albertson

Ticket #669: set CDINSTALL=no for default behaviour

0bde4a2a 02/12/2011 02:07 am Lance Albertson

Add sleep 2 call after mkfs

During re-installs using ext4, we need to give the system a little time after a
mkfs call. Otherwise blkid will not be able to get the UUID sometimes.

8727c57d 11/25/2010 04:40 am Lance Albertson

Ticket #219: Add NOMOUNT option to allow Windows install

Use included patch but extend to import, export, and rename scripts. For now
rename does nothing since we have no way of knowing what the image might be
(windows, linux, etc).

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

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.

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

switch default image type to dump

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

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

add missing variable

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

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

fix typo

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

fix regex to be more aggresive when fixing serial on ubuntu

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

deal with serial in karmic since it works differently

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

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

Use agetty instead of mingetty

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

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.

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

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

add -f to mkswap to remove warning message

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

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

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

Refactor debugging code to be saner and actually work

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

Add VOL_ID and VOL_TYPE back for export

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

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

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

Check for qemu-img during install

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.

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

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

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

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