| Branch: | Tag: | Revision:

root / snf-image-helper / @ ee78390c

History | View | Annotate | Download (14.9 kB)

# Date Author Comment
365b2ed3 01/29/2014 02:53 pm Nikos Skalkotos

Add support for resizing OpenBSD UFS file systems

9787f9c2 11/05/2013 06:31 pm Nikos Skalkotos

Use /etc/motd to check if a system is OpenBSD

In OpenBSD the first line(s) get overwritten upon each boot by
the rc scripts and kernel informations are added

1722e242 10/30/2013 10:30 am Nikos Skalkotos

Add code to detect openbsd flavors

5ff568d5 10/29/2013 06:52 pm Nikos Skalkotos

Add code for detecting NetBSD's in get_distro

f80d3498 10/29/2013 06:18 pm Nikos Skalkotos

Fix a awk bug in get_ufstype function

84d01e3e 10/29/2013 03:32 pm Nikos Skalkotos

Add partial support for NetBSD and OpenBSD

Resizing NetBSD and OpenBSD partitions, as well as FFS filesystems
does not work for now

3bb66fac 10/18/2013 11:03 am Nikos Skalkotos

helper: Fix a bug triggered by corrupted images

Fix a bug in get_partition_to_resize where the script would not stop
if the get_partition_table function failed, leading to bash syntax

62a6be39 04/23/2013 02:20 pm Nikos Skalkotos

Remove duplicated error report in the helper

1876c955 04/23/2013 12:48 pm Nikos Skalkotos

Add some extra checks on FreeBSD images

7fd2dad2 04/22/2013 10:13 pm Nikos Skalkotos

Fix yet another bug in the helper monitoring code

In bash command substitution may trim the output. We need to count
the stderr lines after we use tail and not before

2b79f174 04/22/2013 04:18 pm Nikos Skalkotos

Fix a bug in the extended partition detection code

Sometimes sfdisk --print-id does not return the id because it
erroneously detects the partition as being GPT. Add a --force to
overcome this.

102f6179 04/22/2013 12:55 pm Nikos Skalkotos

Fix a bug in the helper monitoring code

In the STDERR command a `:' was missing

b1cb73f2 04/18/2013 05:36 pm Nikos Skalkotos

Add support for FreeBSD

File injection isn't implemented yet

9ec298c7 04/16/2013 05:53 pm Nikos Skalkotos

Use sgdisk to create gpt partitions

b0cb7802 04/16/2013 12:37 pm Nikos Skalkotos

Replace script with `sgdisk -e'

21063d2d 03/07/2013 11:42 am Nikos Skalkotos

Make helper_ip and monitor_port configurable

Let the host system provide those values to the helper through the
kernel command line.

b2592d38 03/06/2013 08:28 pm Nikos Skalkotos

Monitor helper through UDP packages in xen

d509231b 02/20/2013 07:49 pm Nikos Skalkotos

Make monitoring work with xen

  • Add custom vif script for the helper VM
  • Cleanup helper code
e777f9d5 02/08/2013 06:37 pm Nikos Skalkotos

Remove hardcoded FLOPPY_DEV in helper

Check the cmdline of the kernel to determine what device to check
for find the rules file

107e56e0 02/08/2013 06:31 pm Nikos Skalkotos

In xen use the helper image in ro mode

Make sure everything works even when the root filesystem in the helper
VM is mounted read-only.

f7a4021c 02/07/2013 06:04 pm Nikos Skalkotos

Merge branch 'master' into xen


fcae4e91 02/07/2013 12:11 pm Nikos Skalkotos

Cleanup Xen code

Make it comply with the rest of the software. Some things are not
ready yet.

e2510438 01/07/2013 08:09 pm Nikos Skalkotos

Mount all local filesystems when deploying images

If the image has /home on a different partition than /, then
we'll need to have it mounted to inject files on a user's home

0e707fe3 01/07/2013 04:07 pm Nikos Skalkotos

Fix a bug in get_partition_to_resize

Fix a typo in a variable name

834f8fc0 01/03/2013 08:54 pm Nikos Skalkotos

Treat partitions with id="f" as extended

Partitions with id=0x0F are extended partitions with LBA addressing.

b3aefbbc 12/16/2012 12:07 am Nikos Skalkotos

Fix helper's error monitoring system

Fix a bug where errors that where not created using log_error where
not registered to the monitoring subsystem.

81ca2790 12/07/2012 05:31 pm Nikos Skalkotos

In helper put sysrq shutdown cmd in an inf loop

This is needed because in some cases, the init could exit before the
system shut down causing a KERNEL PANIC.

ab106eec 12/03/2012 05:08 pm Nikos Skalkotos

Credit for the helper VM shutdown

Stratos Psomadakis suggested to shutdoen the helper VM using the `o'
Magic SsysRq key

995a47c9 12/02/2012 11:14 am Nikos Skalkotos

Code cleanup

Make sure local variables are defined as local before they get assigned.
Having variables get defined and assigned in one line like this:

local var=foo

can sometimes cause problems. For example, this line:

local var=$(false)

will return 0 and the script will not fail if set -x is defined.

2a5be644 11/22/2012 02:15 pm Nikos Skalkotos

Fix a bug introduced in 9fca5245a2eae67af86719bb0f

AssignHostname task did not search for Unattend.xml in a case
insensitive way.

7a7e0f27 11/13/2012 03:17 pm Nikos Skalkotos

Fix a bug in helper's error monitoring system

Make sure that if log_error is executed like this:

log_error "text" "text"

The 2 arguments get merged before being fed to the monitoring system.

90db2151 11/13/2012 03:16 pm Nikos Skalkotos

Fix the error messages in helper

9c4a2181 11/13/2012 03:03 pm Nikos Skalkotos

Fix a bug in the helper's monitoring system

Fix a bug where the helper will not send a image-helper-error msg
if an error occures when running snf-image-helper main script and
not one of the configuration tasks.


1ea8db72 09/29/2012 05:46 am Dimitris Aragiorgis

Use socat to dump helper messages in case of xen

Helper gets a dummy interface and communication between helper
and host is done via socat STDIO INTERFACE:eth0/vif$helperid.0

Signed-off-by: Dimitris Aragiorgis <>

e9413eab 09/28/2012 09:41 pm Dimitris Aragiorgis

Make use of XenStore to export SUCCESS msg

Signed-off-by: Dimitris Aragiorgis <>

72052003 09/28/2012 08:17 pm Dimitris Aragiorgis

Xen support

Support launching helper domain on top of Xen hypervisor under PV mode.

Helper VM becomes hypervisor aware by passing hypervisor=$HYPERVISOR
in the kernel command line and thus acts accordingly (which logging
devices to use, what disk/floppy devices to expect, etc)...

beeb8f9f 09/28/2012 04:46 pm Nikos Skalkotos

Disable fsyncs in helper's VM resize operation

You can disable this behaviour by defining the DO_SYNC image property.

b2bffe91 09/26/2012 03:05 pm Nikos Skalkotos

Remove the boot and shutdown process in helper VM

Make snf-image-helper ran as init process when calling the helper
VM. Also make the helper VM shut down quickly by using the shut off

603c05f7 09/24/2012 12:05 pm Nikos Skalkotos

Use UTC when calling date command

9eaa21c5 07/23/2012 07:26 pm Nikos Skalkotos

Add support for archlinux

  • Fix distro detection code to detect arch linux systems
  • Fix AssighHostname hook to successfully assign the host name on
    arch linux systems
f32664b2 07/16/2012 11:51 am Nikos Skalkotos

Add program

This program transforms raw helper monitor messages into json strings
under very strict rules. This reduces security concerns since the
helper VM output cannot be trusted.

d81acb1e 06/29/2012 12:20 pm Nikos Skalkotos

Make the name of image properties case-insensitive

Defining EXCLUDE_TASK_DeleteSSHKeys is the same as defining

a50a2bff 05/29/2012 06:37 pm Nikos Skalkotos

cleanup! cleanup! cleanup! cleanup!

  • Change the monitor message type names once again (hope this is
    the final version)
  • Pass -u (unbuffered) to sed to retain the actual output order in
    the log file
  • Fix a bug in helper code where the starting `{' was missing from...
87d1bf2e 05/28/2012 05:20 pm Nikos Skalkotos

Cleanup monitoring code pt2

  • Remove id field in the notifications (what was left)
  • Make use the already opened pipe file descriptor
    instead of reopening the file
  • Let bash choose the file descriptor instead of specifying one when...
df1c62e2 05/25/2012 05:57 pm Nikos Skalkotos

Cleanup monitoring code

  • Add nanoseconds field in timestamp
  • Remove id field in the notifications
  • Fix cleanup code
2a0ab295 05/24/2012 05:08 pm Nikos Skalkotos

Add start-task and finish-task events

This commit extendes the monitoring mechanism to include events from

8576747b 05/15/2012 01:09 pm Nikos Skalkotos

Fix a bug introduced in 01da0f7d58e0bf30f06755d802

Fix a bug where the partition that should be resized in some cases
was computed in a wrong way

bc9d337a 05/11/2012 05:44 pm Nikos Skalkotos

Add AddSwap task

This task is used to set up the swap partition previously created by
FixPartitionTable task and to add a swap entry in the instances fstab

0d67af87 05/10/2012 05:32 pm Nikos Skalkotos

Remove redundant normalize_unit function

01da0f7d 05/09/2012 07:01 pm Nikos Skalkotos

Add swap partition if SWAP property is defined

b126203e 03/30/2012 07:25 pm Nikos Skalkotos

Add support for logical partitions

Now FixPartitionTable task can enlarge logical partitions

eb8e3364 02/14/2012 03:53 pm Nikos Skalkotos

Add a partition table check in FixPartitionTable

88262dba 02/13/2012 08:14 pm Nikos Skalkotos

Add pipefail option in helpers library

This is needed because contains functions that use pipes,
and the script should fail if any command fails.

b5294d61 01/24/2012 03:56 pm Nikos Skalkotos

Fix OS detection for SuSE and gentoo

2755bb06 01/11/2012 01:05 pm Nikos Skalkotos

Handle unknown linux distro situations

When get_distro and get_base_distro do not detect the linux distribution
a warning is triggered.

AssignHostname fails if the distribution is not known.

b97ada71 12/14/2011 04:17 pm Nikos Skalkotos

Remove fs check before resizing a partition.

Check if the filesystem is clean, and fail if not.

2a0c492d 12/13/2011 01:52 pm Nikos Skalkotos

Move the task exclusion check away from

Not all tasks, should be able to be excluded. If MountImage,
UnmountImage and InstallUnattanded are never excluded, then the system
deployment can't break. If you don't want to mount the image or install
Unattend.xml then you probably want to use EXCLUDE_ALL_TASKS, since all...

7ee2a43d 12/12/2011 04:55 pm Nikos Skalkotos

Change the format of the "exclude task" properties

New format: EXCLUDE_TASK_<task_name>

de0cc3e9 12/01/2011 05:07 pm Nikos Skalkotos

Do fs check before reseizing ext{2,3,4} partitions

7e5d635b 11/18/2011 03:48 pm Nikos Skalkotos

Fix copyright and license notices throughout

ec728294 11/15/2011 05:07 pm Nikos Skalkotos

Disable RDP connection during windows setup

e50c4112 11/11/2011 05:38 pm Nikos Skalkotos

Make exclude task vars comply to property format

The should look like this: SNF_IMAGE_PROPERTY_<TASK_NAME>_TASK

de7269cd 11/11/2011 01:04 pm Nikos Skalkotos

Minor fixes in helper's tasks

e7cbe965 11/08/2011 03:29 pm Nikos Skalkotos

Add code to make task exclusion possible

f6e23601 11/04/2011 05:39 pm Nikos Skalkotos

Add diskdump support in the helper (part 2)

42f09a19 11/03/2011 06:23 pm Nikos Skalkotos

Add diskdump support in the helper (part 1)

df8b2f85 10/11/2011 03:31 pm Nikos Skalkotos

Fix a bug in helper's get_distro function

6a95db10 10/10/2011 03:42 pm Vangelis Koukis

Fix typos, remove reference to $windows_support

bad5ca1f 10/10/2011 09:43 am Nikos Skalkotos

Mass cleanup and some bug fixing

  • Make all "local" variables lowercase.
  • Move HELPER_EXTRA_PKGS from snf-image-update-helper to
  • Protect all variables from spaces and other special chars
  • Remove extra X's from mktemp template names (only 6 are supported)....
76009480 10/06/2011 03:16 pm Nikos Skalkotos

Fix a bug in helper's

It's the same thing fixed in 9aac6898988ab63e7e323d745c41dfb927c51b2f
in the host's code

aa4fc6bb 10/05/2011 01:45 pm Constantinos Venetsanopoulos

Rename helper to snf-image-helper

Also add Changelog and COPYING info