Statistics
| Branch: | Revision:

root / example @ cb9587b6

# Date Author Comment
cb9587b6 07/01/2011 04:26 pm Nikos Skalkotos

Support multiple users in root_password hook

The root_passwd hook can be used to change the password of multiple
users, not just root. We probably should also change the name of the
hook...

01a3ce0b 06/23/2011 01:58 pm Nikos Skalkotos

Remove redundant echo windows hooks

a1b18724 06/20/2011 01:22 pm Nikos Skalkotos

Add a hook to configure the hostname in windows

8d77389f 06/20/2011 11:51 am Nikos Skalkotos

Add hook to set the hostname on linux instances

86ddc018 06/16/2011 06:29 pm Nikos Skalkotos

Add unattended setup support

In more detail:

  • Add unattend.xml file that is copied in the root directory of each
    windows instance before the first boot. This file is used to
    automatically configure some windows options in the setup
  • Add admin_passwd hook for assigning Administrator passwords...
a33d2ab2 06/10/2011 11:36 am Nikos Skalkotos

Added basic windows support

Added support for windows disk partitioning and ntfsclone's special
image format. A hook was also added that installs a valid MBR capable of
booting windows partitions.

bb78ba49 06/09/2011 02:49 pm Nikos Skalkotos

Further seperation of linux-specific things.

Added prefix linux_ to all the common_linux.sh functions `create'
accesses. This will keep things simple when the scripts are extended to
support more OS Families like Windows.

Moved all hooks to a seperate `linux' directory inside...

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

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

0747d6ac 05/26/2011 12:14 am Lance Albertson

Ticket #5685: Add support for baselayout-2.x on Gentoo guests

Also fixed a bug in rename for gentoo guests which had incorrect logic and a
typo.

dda3fd29 05/24/2011 02:40 pm Constantinos Venetsanopoulos

Fixes in root_passwd script

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

b6ccd2b4 03/26/2011 01:05 am Lance Albertson

use new variable

d9679ad7 03/26/2011 12:50 am Lance Albertson

fix syntax error

139cbdf5 03/25/2011 07:53 pm Lance Albertson

Ticket #3855: New hook for properly setting DHCP clients for DDNS

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.

599b34d2 03/25/2011 01:59 am Lance Albertson

Ticket #3849: Fix Hostnames being set incorrectly on Debian/Ubuntu

241fb6e1 03/11/2011 01:59 am Lance Albertson

Ticket #1737: Also delete .pub key files

83edc99e 03/11/2011 01:16 am Lance Albertson

Ticket #243: Add support for resetting the ssh host keys in Debian/Ubuntu

84472880 11/22/2010 01:15 am Lance Albertson

Ticket #207: Copy files into instances using overlays

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

example kickstart/preseed files

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

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

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

Add support for setting IPs statically

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

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.

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

Import from instance-debootstrap 17b5b2da0