Statistics
| Branch: | Tag: | Revision:

root / snf-image-helper / tasks / 50AssignHostname.in @ 365b2ed3

History | View | Annotate | Download (4.5 kB)

# Date Author Comment
9e8db27f 10/31/2013 11:04 am Nikos Skalkotos

Fix a function name typo in AssignHostname task

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

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

Add support for FreeBSD

File injection isn't implemented yet

8c2dc27c 01/04/2013 03:59 pm Nikos Skalkotos

Fix AssignHostname task for arch linux

If both /etc/rc.conf and /etc/hostname are missing, create the latter
to host the hostname.

33e9b1b1 12/16/2012 09:41 am Nikos Skalkotos

Check for /etc/hostname in AssignHostname task

By default without investigating the distro of the guest VM, check
for the presence of /etc/hostname file. This is the default place
for static host names in systems that use the systemd startup deamon.

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.

c50358a6 09/06/2012 01:10 pm Nikos Skalkotos

Make sure EnforcePersonality runs last

When a users inject a file in an image that already exists,
we want to make sure that this file is not altered by any other task.
So, the EnforcePersonality task, is the last task that should run
before the image is unmounted.

18b4d7d0 07/29/2012 04:58 pm Nikos Skalkotos

In archlinux make use of /etc/hostname if present

Newer arch linux systems use this file to assign a hostname. If the
file is present and not empty, then use it.

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
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...
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
snf-image-helper.

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.

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

Move the task exclusion check away from common.sh

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

c334f836 12/12/2011 06:43 pm Nikos Skalkotos

Make helper fail is OSFAMILY property is missing

Also did a minor cleanup in AssignHostname task

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

Fix copyright and license notices throughout

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

Minor fixes in helper's tasks

473f4fa5 11/09/2011 03:50 pm Nikos Skalkotos

Add image-properties support in helper

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

Add diskdump support in the helper (part 2)

0cf9835d 10/13/2011 07:36 am Nikos Skalkotos

Update the task info comments in the tasks files

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 common.sh
  • Protect all variables from spaces and other special chars
  • Remove extra X's from mktemp template names (only 6 are supported)....
aa4fc6bb 10/05/2011 01:45 pm Constantinos Venetsanopoulos

Rename helper to snf-image-helper

Also add Changelog and COPYING info