Nikos Skalkotos [Thu, 29 Mar 2012 15:43:01 +0000 (18:43 +0300)]
Update ChangeLog and configure for version 0.3.6
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.
Nikos Skalkotos [Mon, 26 Mar 2012 17:17:10 +0000 (20:17 +0300)]
Update configure.ac and ChangeLogs for v0.3.5
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
Nikos Skalkotos [Mon, 5 Mar 2012 16:02:59 +0000 (18:02 +0200)]
Update configure.ac and ChangeLogs for v0.3.4
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
Nikos Skalkotos [Wed, 29 Feb 2012 08:46:20 +0000 (10:46 +0200)]
Update configure.ac and ChangeLogs for v0.3.3
Giorgos Verigakis [Fri, 17 Feb 2012 13:24:56 +0000 (15:24 +0200)]
Bugfix, truncate to size
Nikos Skalkotos [Tue, 14 Feb 2012 13:53:43 +0000 (15:53 +0200)]
Add a partition table check in FixPartitionTable
Nikos Skalkotos [Tue, 14 Feb 2012 13:50:48 +0000 (15:50 +0200)]
Output the error helper VM returns
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.
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.
Nikos Skalkotos [Mon, 6 Feb 2012 09:51:14 +0000 (11:51 +0200)]
Update configure.ac and ChangeLogs for v0.3.2
Giorgos Verigakis [Fri, 3 Feb 2012 16:15:11 +0000 (18:15 +0200)]
get_object_meta now requires a domain
Nikos Skalkotos [Thu, 26 Jan 2012 10:20:39 +0000 (12:20 +0200)]
Update ChangeLogs for v0.3.1
Nikos Skalkotos [Tue, 24 Jan 2012 13:56:09 +0000 (15:56 +0200)]
Fix OS detection for SuSE and gentoo
Nikos Skalkotos [Thu, 12 Jan 2012 11:06:19 +0000 (13:06 +0200)]
Update date in ChangeLog for v0.3
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.
Nikos Skalkotos [Wed, 4 Jan 2012 15:20:51 +0000 (17:20 +0200)]
Correct an error msg in FixPartitionTable
Nikos Skalkotos [Wed, 4 Jan 2012 09:38:58 +0000 (11:38 +0200)]
Fix Short-Description in FixPartitionTable task
Nikos Skalkotos [Mon, 19 Dec 2011 16:28:17 +0000 (18:28 +0200)]
Fix a small typo in an error message.
Nikos Skalkotos [Fri, 16 Dec 2011 12:55:57 +0000 (14:55 +0200)]
Update PACKAGE_VERSION in configure.ac to 0.3
Nikos Skalkotos [Thu, 15 Dec 2011 16:44:50 +0000 (18:44 +0200)]
Update ChangeLog for 0.3
Nikos Skalkotos [Thu, 15 Dec 2011 16:40:05 +0000 (18:40 +0200)]
Explain why helper uses -f (force) in resize2fs
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.
Nikos Skalkotos [Thu, 15 Dec 2011 15:46:22 +0000 (17:46 +0200)]
Fix default PITHOS_DATA value
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.
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.
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.
Nikos Skalkotos [Wed, 14 Dec 2011 13:39:22 +0000 (15:39 +0200)]
Really minor cleanup
Remove a redundant echo.
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.
Nikos Skalkotos [Tue, 13 Dec 2011 10:08:46 +0000 (12:08 +0200)]
Minor Cleanup in the helper
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
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
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>
Nikos Skalkotos [Mon, 12 Dec 2011 14:33:23 +0000 (16:33 +0200)]
Update Makefile.am to include pithcat
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.
Nikos Skalkotos [Mon, 12 Dec 2011 14:05:38 +0000 (16:05 +0200)]
Merge branch 'pithos-backend'
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.
Giorgos Verigakis [Mon, 12 Dec 2011 13:26:39 +0000 (15:26 +0200)]
License change to match the rest of the project
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
Nikos Skalkotos [Thu, 1 Dec 2011 15:07:37 +0000 (17:07 +0200)]
Do fs check before reseizing ext{2,3,4} partitions
Nikos Skalkotos [Thu, 1 Dec 2011 15:02:54 +0000 (17:02 +0200)]
Remove the ARCH field from the image name
Nikos Skalkotos [Wed, 23 Nov 2011 10:36:41 +0000 (12:36 +0200)]
Fix yet another syntax error introduced in 78e9f20
Nikos Skalkotos [Wed, 23 Nov 2011 10:07:20 +0000 (12:07 +0200)]
Fix a syntax error introduced in the commit 78e9f
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.
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.
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.
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.
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.
Nikos Skalkotos [Fri, 18 Nov 2011 14:11:10 +0000 (16:11 +0200)]
Update ChangeLogs for v0.2
Nikos Skalkotos [Fri, 18 Nov 2011 13:48:47 +0000 (15:48 +0200)]
Fix copyright and license notices throughout
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
Nikos Skalkotos [Fri, 18 Nov 2011 12:03:37 +0000 (14:03 +0200)]
Fix a bug in EnforcePersonality
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.
Constantinos Venetsanopoulos [Thu, 17 Nov 2011 16:02:30 +0000 (18:02 +0200)]
Change COPYING from BSD-2-clause to GPLv2
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.
Nikos Skalkotos [Wed, 16 Nov 2011 14:15:58 +0000 (16:15 +0200)]
Hardcode OSFAMILY img property for {ntfs,ext}dump
Nikos Skalkotos [Wed, 16 Nov 2011 13:49:46 +0000 (15:49 +0200)]
Fix Makefile after last filename change
Nikos Skalkotos [Wed, 16 Nov 2011 13:47:14 +0000 (15:47 +0200)]
Mouve FilesystemResizeMounted to lower priority
This task needs InstallUnattend
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
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.
Nikos Skalkotos [Tue, 15 Nov 2011 15:07:05 +0000 (17:07 +0200)]
Disable RDP connection during windows setup
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.
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
Nikos Skalkotos [Fri, 11 Nov 2011 14:02:20 +0000 (16:02 +0200)]
Update ChangeLogs and configure for version 0.2
Nikos Skalkotos [Fri, 11 Nov 2011 13:33:20 +0000 (15:33 +0200)]
Fix ROOT_PARTITION property support
Nikos Skalkotos [Fri, 11 Nov 2011 11:59:05 +0000 (13:59 +0200)]
Merge branch 'v0.2-dev'
Nikos Skalkotos [Fri, 11 Nov 2011 11:04:09 +0000 (13:04 +0200)]
Minor fixes in helper's tasks
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
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
Nikos Skalkotos [Thu, 10 Nov 2011 14:58:01 +0000 (16:58 +0200)]
Fix bash syntax error in a case statement
Nikos Skalkotos [Wed, 9 Nov 2011 15:07:31 +0000 (17:07 +0200)]
Add initial support for custom images
Nikos Skalkotos [Wed, 9 Nov 2011 14:57:40 +0000 (16:57 +0200)]
Support USERS property in ChangePassword task
Nikos Skalkotos [Wed, 9 Nov 2011 13:50:04 +0000 (15:50 +0200)]
Add image-properties support in helper
Nikos Skalkotos [Wed, 9 Nov 2011 09:53:10 +0000 (11:53 +0200)]
Use load method instead of loads in inject-files
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
Nikos Skalkotos [Mon, 7 Nov 2011 16:03:57 +0000 (18:03 +0200)]
Add code to make task exclusion possible
Nikos Skalkotos [Mon, 7 Nov 2011 09:49:46 +0000 (11:49 +0200)]
Remove forgotten -l option in update-helper
Nikos Skalkotos [Mon, 7 Nov 2011 09:13:18 +0000 (11:13 +0200)]
Add parted as a default pkgs in HELPER_EXTRA_PKGS
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.
Nikos Skalkotos [Sun, 6 Nov 2011 23:21:57 +0000 (01:21 +0200)]
Add renamed and new tasks in helper's Makefile.am
Nikos Skalkotos [Sun, 6 Nov 2011 22:31:28 +0000 (00:31 +0200)]
Add parted as a dependency for helper in configure
Nikos Skalkotos [Fri, 4 Nov 2011 15:39:37 +0000 (17:39 +0200)]
Add diskdump support in the helper (part 2)
Nikos Skalkotos [Thu, 3 Nov 2011 16:23:59 +0000 (18:23 +0200)]
Add diskdump support in the helper (part 1)
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
Nikos Skalkotos [Wed, 2 Nov 2011 14:42:38 +0000 (16:42 +0200)]
Add diskdump support in create (part 2)
Nikos Skalkotos [Mon, 31 Oct 2011 15:05:05 +0000 (17:05 +0200)]
Add diskdump support in create
Nikos Skalkotos [Mon, 31 Oct 2011 15:02:43 +0000 (17:02 +0200)]
Beautify common.sh.in
Nikos Skalkotos [Mon, 31 Oct 2011 15:02:43 +0000 (17:02 +0200)]
Beautify common.sh.in
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.
Nikos Skalkotos [Wed, 26 Oct 2011 09:12:57 +0000 (12:12 +0300)]
Add input options in update-helper script
Nikos Skalkotos [Thu, 20 Oct 2011 09:08:45 +0000 (12:08 +0300)]
Update ChangeLogs for v0.1.2
Nikos Skalkotos [Thu, 20 Oct 2011 08:31:18 +0000 (11:31 +0300)]
Fix issues #1531 #1532 #1533
Nikos Skalkotos [Mon, 17 Oct 2011 10:09:28 +0000 (13:09 +0300)]
Update ChangeLog Files
Nikos Skalkotos [Mon, 17 Oct 2011 10:04:37 +0000 (13:04 +0300)]
Add timestamp before & after helper VM's execution
Nikos Skalkotos [Mon, 17 Oct 2011 08:52:27 +0000 (11:52 +0300)]
Replace $(var) with ${var} in defaults file.
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
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.
Nikos Skalkotos [Thu, 13 Oct 2011 11:09:35 +0000 (14:09 +0300)]
Fix a dangerous-use-of-xargs bug in create