snf-image
12 years agoUpdate ChangeLog and configure for version 0.3.6 v0.3.6
Nikos Skalkotos [Thu, 29 Mar 2012 15:43:01 +0000 (18:43 +0300)]
Update ChangeLog and configure for version 0.3.6

12 years agoIn update-helper ask before using a cache file
Nikos Skalkotos [Thu, 29 Mar 2012 14:04:46 +0000 (17:04 +0300)]
In update-helper ask before using a cache file

* If -y is not specified and a cache file is found, ask the user before
using it.
* "Fix" the -c option's behaviour. With this commit, if -c is applied,
the system will use the provided cache file if present and will do a
debootstrap if the file does not exist. The result of debootstrap will
be saved in the default cache file provided by the HELPER_CACHE_FILE
variable. This way, we do not need to provide an extra "disable cache
file option". One can run the program with -c "" to get this behaviour.

12 years agoUpdate configure.ac and ChangeLogs for v0.3.5 v0.3.5
Nikos Skalkotos [Mon, 26 Mar 2012 17:17:10 +0000 (20:17 +0300)]
Update configure.ac and ChangeLogs for v0.3.5

12 years agoForce automatic updates in windows
Nikos Skalkotos [Mon, 26 Mar 2012 17:07:10 +0000 (20:07 +0300)]
Force automatic updates in windows

Update the windows registry in Unattend.xml to force an automatic
Windows Update

12 years agoUpdate configure.ac and ChangeLogs for v0.3.4 v0.3.4
Nikos Skalkotos [Mon, 5 Mar 2012 16:02:59 +0000 (18:02 +0200)]
Update configure.ac and ChangeLogs for v0.3.4

12 years agoFix a bug in DeleteSSHKeys task.
Nikos Skalkotos [Mon, 5 Mar 2012 15:39:26 +0000 (17:39 +0200)]
Fix a bug in DeleteSSHKeys task.

This bug was introduced in commit 88262dba that added pipefail bash
option to all configuration tasks

12 years agoUpdate configure.ac and ChangeLogs for v0.3.3 v0.3.3
Nikos Skalkotos [Wed, 29 Feb 2012 08:46:20 +0000 (10:46 +0200)]
Update configure.ac and ChangeLogs for v0.3.3

12 years agoBugfix, truncate to size
Giorgos Verigakis [Fri, 17 Feb 2012 13:24:56 +0000 (15:24 +0200)]
Bugfix, truncate to size

12 years agoAdd a partition table check in FixPartitionTable
Nikos Skalkotos [Tue, 14 Feb 2012 13:53:43 +0000 (15:53 +0200)]
Add a partition table check in FixPartitionTable

12 years agoOutput the error helper VM returns
Nikos Skalkotos [Tue, 14 Feb 2012 13:50:48 +0000 (15:50 +0200)]
Output the error helper VM returns

12 years agoAdd pipefail option in helpers common.sh library
Nikos Skalkotos [Mon, 13 Feb 2012 18:14:21 +0000 (20:14 +0200)]
Add pipefail option in helpers common.sh library

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

12 years agoMake update-helper detect the systems's arch
Nikos Skalkotos [Mon, 13 Feb 2012 11:31:05 +0000 (13:31 +0200)]
Make update-helper detect the systems's arch

The system's architecture is needed by debootstrap.

12 years agoUpdate configure.ac and ChangeLogs for v0.3.2 v0.3.2
Nikos Skalkotos [Mon, 6 Feb 2012 09:51:14 +0000 (11:51 +0200)]
Update configure.ac and ChangeLogs for v0.3.2

12 years agoget_object_meta now requires a domain
Giorgos Verigakis [Fri, 3 Feb 2012 16:15:11 +0000 (18:15 +0200)]
get_object_meta now requires a domain

12 years agoUpdate ChangeLogs for v0.3.1 v0.3.1
Nikos Skalkotos [Thu, 26 Jan 2012 10:20:39 +0000 (12:20 +0200)]
Update ChangeLogs for v0.3.1

12 years agoFix OS detection for SuSE and gentoo
Nikos Skalkotos [Tue, 24 Jan 2012 13:56:09 +0000 (15:56 +0200)]
Fix OS detection for SuSE and gentoo

12 years agoUpdate date in ChangeLog for v0.3 v0.3
Nikos Skalkotos [Thu, 12 Jan 2012 11:06:19 +0000 (13:06 +0200)]
Update date in ChangeLog for v0.3

12 years agoHandle unknown linux distro situations
Nikos Skalkotos [Wed, 11 Jan 2012 11:05:28 +0000 (13:05 +0200)]
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.

12 years agoCorrect an error msg in FixPartitionTable
Nikos Skalkotos [Wed, 4 Jan 2012 15:20:51 +0000 (17:20 +0200)]
Correct an error msg in FixPartitionTable

12 years agoFix Short-Description in FixPartitionTable task
Nikos Skalkotos [Wed, 4 Jan 2012 09:38:58 +0000 (11:38 +0200)]
Fix Short-Description in FixPartitionTable task

12 years agoFix a small typo in an error message.
Nikos Skalkotos [Mon, 19 Dec 2011 16:28:17 +0000 (18:28 +0200)]
Fix a small typo in an error message.

12 years agoUpdate PACKAGE_VERSION in configure.ac to 0.3 v0.3-rc1
Nikos Skalkotos [Fri, 16 Dec 2011 12:55:57 +0000 (14:55 +0200)]
Update PACKAGE_VERSION in configure.ac to 0.3

12 years agoUpdate ChangeLog for 0.3
Nikos Skalkotos [Thu, 15 Dec 2011 16:44:50 +0000 (18:44 +0200)]
Update ChangeLog for 0.3

12 years agoExplain why helper uses -f (force) in resize2fs
Nikos Skalkotos [Thu, 15 Dec 2011 16:40:05 +0000 (18:40 +0200)]
Explain why helper uses -f (force) in resize2fs

12 years agoFix a bash bug in create
Nikos Skalkotos [Thu, 15 Dec 2011 15:50:46 +0000 (17:50 +0200)]
Fix a bash bug in create

The bug had to do with the presence of a space character right after =
in a variable assignment.

12 years agoFix default PITHOS_DATA value
Nikos Skalkotos [Thu, 15 Dec 2011 15:46:22 +0000 (17:46 +0200)]
Fix default PITHOS_DATA value

12 years agoHost helper's COW and result file in a tmpfs jail
Nikos Skalkotos [Thu, 15 Dec 2011 11:12:38 +0000 (13:12 +0200)]
Host helper's COW and result file in a tmpfs jail

This way we can restrict the size of the files created by the helper.

12 years agoFix an error introduced in commit b97ada713646ab29
Nikos Skalkotos [Wed, 14 Dec 2011 15:26:11 +0000 (17:26 +0200)]
Fix an error introduced in commit b97ada713646ab29

The device argument in tunefs command was erroneously ommited.

12 years agoRemove fs check before resizing a partition.
Nikos Skalkotos [Wed, 14 Dec 2011 14:17:57 +0000 (16:17 +0200)]
Remove fs check before resizing a partition.

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

12 years agoReally minor cleanup
Nikos Skalkotos [Wed, 14 Dec 2011 13:39:22 +0000 (15:39 +0200)]
Really minor cleanup

Remove a redundant echo.

12 years agoMove the task exclusion check away from common.sh
Nikos Skalkotos [Tue, 13 Dec 2011 10:54:45 +0000 (12:54 +0200)]
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
other tasks depend on the aforementioned ones.

12 years agoMinor Cleanup in the helper
Nikos Skalkotos [Tue, 13 Dec 2011 10:08:46 +0000 (12:08 +0200)]
Minor Cleanup in the helper

12 years agoFix 2 bugs in FilesystemResizeUnmounted task
Nikos Skalkotos [Mon, 12 Dec 2011 17:39:37 +0000 (19:39 +0200)]
Fix 2 bugs in FilesystemResizeUnmounted task

 * Add -y option to e2fsck, otherwise the program complaines for not
   running in an interactive shell
 * Fix a typo in a variable

12 years agoMake helper fail is OSFAMILY property is missing
Nikos Skalkotos [Mon, 12 Dec 2011 16:41:47 +0000 (18:41 +0200)]
Make helper fail is OSFAMILY property is missing

Also did a minor cleanup in AssignHostname task

12 years agoChange the format of the "exclude task" properties
Nikos Skalkotos [Mon, 12 Dec 2011 14:55:51 +0000 (16:55 +0200)]
Change the format of the "exclude task" properties

New format: EXCLUDE_TASK_<task_name>

12 years agoUpdate Makefile.am to include pithcat
Nikos Skalkotos [Mon, 12 Dec 2011 14:33:23 +0000 (16:33 +0200)]
Update Makefile.am to include pithcat

12 years agoUpdate AUTHORS list
Nikos Skalkotos [Mon, 12 Dec 2011 14:25:54 +0000 (16:25 +0200)]
Update AUTHORS list

Add Giorgos Verigakis in the AUTHORS list for contributing pithcat.

12 years agoMerge branch 'pithos-backend'
Nikos Skalkotos [Mon, 12 Dec 2011 14:05:38 +0000 (16:05 +0200)]
Merge branch 'pithos-backend'

12 years agoClean up code and support pithos-hosted images
Nikos Skalkotos [Mon, 12 Dec 2011 13:19:51 +0000 (15:19 +0200)]
Clean up code and support pithos-hosted images

 * Drop "custom" image format type. The same functionality is provided
   by network-hosted images.
 * Images with id that starts with "http:", "https:", "ftp:", "ftps:"
   are considered to be network hosted and are downloaded via cURL.
 * Images with id that starts with "pithos:" are considered to be
   pithos-hosted.
 * Support for pithos and network hosted images is disabled by default.
   You may enable it when configuring the project  using
   --enable-pithos-backend and --enable-network-backend respectively.

12 years agoLicense change to match the rest of the project
Giorgos Verigakis [Mon, 12 Dec 2011 13:26:39 +0000 (15:26 +0200)]
License change to match the rest of the project

12 years agoAdd pithcat tool
Giorgos Verigakis [Fri, 9 Dec 2011 11:41:37 +0000 (13:41 +0200)]
Add pithcat tool

It connects to a Pithos backend and either fetches
the data of a file or returns its size.

Refs #1745

12 years agoDo fs check before reseizing ext{2,3,4} partitions
Nikos Skalkotos [Thu, 1 Dec 2011 15:07:37 +0000 (17:07 +0200)]
Do fs check before reseizing ext{2,3,4} partitions

12 years agoRemove the ARCH field from the image name
Nikos Skalkotos [Thu, 1 Dec 2011 15:02:54 +0000 (17:02 +0200)]
Remove the ARCH field from the image name

12 years agoFix yet another syntax error introduced in 78e9f20 v0.2
Nikos Skalkotos [Wed, 23 Nov 2011 10:36:41 +0000 (12:36 +0200)]
Fix yet another syntax error introduced in 78e9f20

12 years agoFix a syntax error introduced in the commit 78e9f
Nikos Skalkotos [Wed, 23 Nov 2011 10:07:20 +0000 (12:07 +0200)]
Fix a syntax error introduced in the commit 78e9f

12 years agoMake image properties optional
Nikos Skalkotos [Tue, 22 Nov 2011 16:05:46 +0000 (18:05 +0200)]
Make image properties optional

Image properties should be an optional argument. In any other case
snf-image does not retail backward compatibility.

12 years agoFix license and copyright
Nikos Skalkotos [Tue, 22 Nov 2011 13:24:47 +0000 (15:24 +0200)]
Fix license and copyright

Some files were accidentally left out from the last license and
copyright fix.

12 years agoFix a bug in EnforcePersonality task
Nikos Skalkotos [Tue, 22 Nov 2011 11:25:03 +0000 (13:25 +0200)]
Fix a bug in EnforcePersonality task

The task tried to run inject-files.py even if SNF_IMAGE_PERSONALITY
variable was empty, which led to error.

12 years agoMake ChangePassword task always respect USERS var
Nikos Skalkotos [Mon, 21 Nov 2011 14:55:48 +0000 (16:55 +0200)]
Make ChangePassword task always respect USERS var

Only the users defined by SNF_IMAGE_PROPERTY_USERS var will have their
passwords changed by ChangePassword task.

12 years agoMinor changes in inject-files.py v0.2-rc1
Vangelis Koukis [Fri, 18 Nov 2011 14:38:10 +0000 (16:38 +0200)]
Minor changes in inject-files.py

Make minor modifications to string handling in inject-files.py,
also fix some PEP8 errors.

12 years agoUpdate ChangeLogs for v0.2
Nikos Skalkotos [Fri, 18 Nov 2011 14:11:10 +0000 (16:11 +0200)]
Update ChangeLogs for v0.2

12 years agoFix copyright and license notices throughout
Nikos Skalkotos [Fri, 18 Nov 2011 13:48:47 +0000 (15:48 +0200)]
Fix copyright and license notices throughout

12 years agoFix a bug in host's floppy exported variables
Nikos Skalkotos [Fri, 18 Nov 2011 12:11:50 +0000 (14:11 +0200)]
Fix a bug in host's floppy exported variables

The bug was triggered when a variable contained new lines

12 years agoFix a bug in EnforcePersonality
Nikos Skalkotos [Fri, 18 Nov 2011 12:03:37 +0000 (14:03 +0200)]
Fix a bug in EnforcePersonality

12 years agoExtend image personalization task
Nikos Skalkotos [Fri, 18 Nov 2011 09:47:58 +0000 (11:47 +0200)]
Extend image personalization task

Now injected files may include user defined permition and ownership
information.

12 years agoChange COPYING from BSD-2-clause to GPLv2
Constantinos Venetsanopoulos [Thu, 17 Nov 2011 16:02:30 +0000 (18:02 +0200)]
Change COPYING from BSD-2-clause to GPLv2

12 years agoRemove " from variables hosting program names.
Nikos Skalkotos [Wed, 16 Nov 2011 14:32:33 +0000 (16:32 +0200)]
Remove " from variables hosting program names.

This way the scripts won't fail if someone adds input arguments after
the program name inside the variable.

12 years agoHardcode OSFAMILY img property for {ntfs,ext}dump
Nikos Skalkotos [Wed, 16 Nov 2011 14:15:58 +0000 (16:15 +0200)]
Hardcode OSFAMILY img property for {ntfs,ext}dump

12 years agoFix Makefile after last filename change
Nikos Skalkotos [Wed, 16 Nov 2011 13:49:46 +0000 (15:49 +0200)]
Fix Makefile after last filename change

12 years agoMouve FilesystemResizeMounted to lower priority
Nikos Skalkotos [Wed, 16 Nov 2011 13:47:14 +0000 (15:47 +0200)]
Mouve FilesystemResizeMounted to lower priority

This task needs InstallUnattend

12 years agoDelete AddDeleteUnattendScript from Makefile.am
Nikos Skalkotos [Wed, 16 Nov 2011 13:20:55 +0000 (15:20 +0200)]
Delete AddDeleteUnattendScript from Makefile.am

This task is deleted from the repository. It's functionality was merged
with InstallUnattend

12 years agoFix a Windows security risk
Nikos Skalkotos [Wed, 16 Nov 2011 12:40:00 +0000 (14:40 +0200)]
Fix a Windows security risk

The password is applied in oobeSystem and RDP is enabled in a previous
pass. I Also did a cleanup on the windows tasks.

12 years agoDisable RDP connection during windows setup
Nikos Skalkotos [Tue, 15 Nov 2011 15:07:05 +0000 (17:07 +0200)]
Disable RDP connection during windows setup

12 years agoAbandon wget.
Nikos Skalkotos [Fri, 11 Nov 2011 16:23:01 +0000 (18:23 +0200)]
Abandon wget.

Since curl is needed to find remote file sizes, lets do the whole
downloading with curl.

12 years agoMake exclude task vars comply to property format
Nikos Skalkotos [Fri, 11 Nov 2011 15:38:15 +0000 (17:38 +0200)]
Make exclude task vars comply to property format

The should look like this: SNF_IMAGE_PROPERTY_<TASK_NAME>_TASK

12 years agoUpdate ChangeLogs and configure for version 0.2
Nikos Skalkotos [Fri, 11 Nov 2011 14:02:20 +0000 (16:02 +0200)]
Update ChangeLogs and configure for version 0.2

12 years agoFix ROOT_PARTITION property support
Nikos Skalkotos [Fri, 11 Nov 2011 13:33:20 +0000 (15:33 +0200)]
Fix ROOT_PARTITION property support

12 years agoMerge branch 'v0.2-dev'
Nikos Skalkotos [Fri, 11 Nov 2011 11:59:05 +0000 (13:59 +0200)]
Merge branch 'v0.2-dev'

12 years agoMinor fixes in helper's tasks
Nikos Skalkotos [Fri, 11 Nov 2011 11:04:09 +0000 (13:04 +0200)]
Minor fixes in helper's tasks

12 years agoFix custom images support
Nikos Skalkotos [Fri, 11 Nov 2011 09:06:13 +0000 (11:06 +0200)]
Fix custom images support

* Add code to compute the remote filesize
* Check for wget and curl in the configuration phase

12 years agoFix various bugs in snf-image-helper
Nikos Skalkotos [Thu, 10 Nov 2011 16:58:54 +0000 (18:58 +0200)]
Fix various bugs in snf-image-helper

* In decode-properties.py, use subprocess.Popen method instead of
  subprocess.check_output, which is introduced in python 2.7

* Fix a bug in snf-image-helper where decode-properties.py was not
  properly called

* Fix a bug in FixPartitionTable task

12 years agoFix bash syntax error in a case statement
Nikos Skalkotos [Thu, 10 Nov 2011 14:58:01 +0000 (16:58 +0200)]
Fix bash syntax error in a case statement

12 years agoAdd initial support for custom images
Nikos Skalkotos [Wed, 9 Nov 2011 15:07:31 +0000 (17:07 +0200)]
Add initial support for custom images

12 years agoSupport USERS property in ChangePassword task
Nikos Skalkotos [Wed, 9 Nov 2011 14:57:40 +0000 (16:57 +0200)]
Support USERS property in ChangePassword task

12 years agoAdd image-properties support in helper
Nikos Skalkotos [Wed, 9 Nov 2011 13:50:04 +0000 (15:50 +0200)]
Add image-properties support in helper

12 years agoUse load method instead of loads in inject-files
Nikos Skalkotos [Wed, 9 Nov 2011 09:53:10 +0000 (11:53 +0200)]
Use load method instead of loads in inject-files

12 years agoCreate a bash wrapper for EnforcePersonality.py
Nikos Skalkotos [Tue, 8 Nov 2011 13:17:01 +0000 (15:17 +0200)]
Create a bash wrapper for EnforcePersonality.py

All tasks should be bash scripts that source common.sh. We have also
fixed BUG #1577

12 years agoAdd code to make task exclusion possible
Nikos Skalkotos [Mon, 7 Nov 2011 16:03:57 +0000 (18:03 +0200)]
Add code to make task exclusion possible

12 years agoRemove forgotten -l option in update-helper
Nikos Skalkotos [Mon, 7 Nov 2011 09:49:46 +0000 (11:49 +0200)]
Remove forgotten -l option in update-helper

12 years agoAdd parted as a default pkgs in HELPER_EXTRA_PKGS
Nikos Skalkotos [Mon, 7 Nov 2011 09:13:18 +0000 (11:13 +0200)]
Add parted as a default pkgs in HELPER_EXTRA_PKGS

12 years agoAdd `img_properties` OS parameter
Constantinos Venetsanopoulos [Tue, 8 Nov 2011 09:23:35 +0000 (11:23 +0200)]
Add `img_properties` OS parameter

The img_properties parameter is a json dictionary
(json.dumps format) which contains all the necessary
properties that will be used to customize the new image.

12 years agoAdd renamed and new tasks in helper's Makefile.am
Nikos Skalkotos [Sun, 6 Nov 2011 23:21:57 +0000 (01:21 +0200)]
Add renamed and new tasks in helper's Makefile.am

12 years agoAdd parted as a dependency for helper in configure
Nikos Skalkotos [Sun, 6 Nov 2011 22:31:28 +0000 (00:31 +0200)]
Add parted as a dependency for helper in configure

12 years agoAdd diskdump support in the helper (part 2)
Nikos Skalkotos [Fri, 4 Nov 2011 15:39:37 +0000 (17:39 +0200)]
Add diskdump support in the helper (part 2)

12 years agoAdd diskdump support in the helper (part 1)
Nikos Skalkotos [Thu, 3 Nov 2011 16:23:59 +0000 (18:23 +0200)]
Add diskdump support in the helper (part 1)

12 years agoPass a new (SNF_IMAGE_)ROOT variable to the helper
Nikos Skalkotos [Thu, 3 Nov 2011 15:15:15 +0000 (17:15 +0200)]
Pass a new (SNF_IMAGE_)ROOT variable to the helper

For {ext,ntfs}dump this is always 1.
For diskdump this is an image property

12 years agoAdd diskdump support in create (part 2)
Nikos Skalkotos [Wed, 2 Nov 2011 14:42:38 +0000 (16:42 +0200)]
Add diskdump support in create (part 2)

12 years agoAdd diskdump support in create
Nikos Skalkotos [Mon, 31 Oct 2011 15:05:05 +0000 (17:05 +0200)]
Add diskdump support in create

12 years agoBeautify common.sh.in
Nikos Skalkotos [Mon, 31 Oct 2011 15:02:43 +0000 (17:02 +0200)]
Beautify common.sh.in

12 years agoBeautify common.sh.in
Nikos Skalkotos [Mon, 31 Oct 2011 15:02:43 +0000 (17:02 +0200)]
Beautify common.sh.in

12 years agoBeautify help msg in update-helper
Nikos Skalkotos [Wed, 26 Oct 2011 14:12:04 +0000 (17:12 +0300)]
Beautify help msg in update-helper

Also remove `-l' option. It's no longer needed.

12 years agoAdd input options in update-helper script
Nikos Skalkotos [Wed, 26 Oct 2011 09:12:57 +0000 (12:12 +0300)]
Add input options in update-helper script

12 years agoUpdate ChangeLogs for v0.1.2 v0.1.2
Nikos Skalkotos [Thu, 20 Oct 2011 09:08:45 +0000 (12:08 +0300)]
Update ChangeLogs for v0.1.2

12 years agoFix issues #1531 #1532 #1533
Nikos Skalkotos [Thu, 20 Oct 2011 08:31:18 +0000 (11:31 +0300)]
Fix issues #1531 #1532 #1533

12 years agoUpdate ChangeLog Files v0.1.1
Nikos Skalkotos [Mon, 17 Oct 2011 10:09:28 +0000 (13:09 +0300)]
Update ChangeLog Files

12 years agoAdd timestamp before & after helper VM's execution
Nikos Skalkotos [Mon, 17 Oct 2011 10:04:37 +0000 (13:04 +0300)]
Add timestamp before & after helper VM's execution

12 years agoReplace $(var) with ${var} in defaults file.
Nikos Skalkotos [Mon, 17 Oct 2011 08:52:27 +0000 (11:52 +0300)]
Replace $(var) with ${var} in defaults file.

12 years agoAdd timestamps in output of run-parts hooks
Vangelis Koukis [Mon, 17 Oct 2011 08:36:10 +0000 (11:36 +0300)]
Add timestamps in output of run-parts hooks

Prepend a timestamp before every line of output of run-parts hooks,
needed as a quick-n-dirty way to estimate the time taken by each hook to
complete.

Refs #1499

12 years agoFix a typo in a var name in ChangePassword task
Nikos Skalkotos [Fri, 14 Oct 2011 08:38:07 +0000 (11:38 +0300)]
Fix a typo in a var name in ChangePassword task

This has an affect on fedora and ubuntu instances, where user password
is not changed. Only the root one.

12 years agoFix a dangerous-use-of-xargs bug in create v0.1
Nikos Skalkotos [Thu, 13 Oct 2011 11:09:35 +0000 (14:09 +0300)]
Fix a dangerous-use-of-xargs bug in create