Statistics
| Branch: | Revision:

root / common.sh.in @ 9f4b2c31

History | View | Annotate | Download (11.7 kB)

# Date Author Comment
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