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
Nikos Skalkotos [Thu, 13 Oct 2011 10:37:53 +0000 (13:37 +0300)]
Make helper print warnings for missing sshd_config
DeleteSShKeys task used to fail when /etc/ssh/sshd_config was missing.
We decided to relax this constraint and make it create warnings instead.
Vangelis Koukis [Thu, 13 Oct 2011 09:05:53 +0000 (12:05 +0300)]
Fix usage of file as a var in personality task
Fix usage of file as a var name, in personality task,
it's a built-in Python identifier.
Nikos Skalkotos [Thu, 13 Oct 2011 04:36:00 +0000 (07:36 +0300)]
Update the task info comments in the tasks files
Nikos Skalkotos [Wed, 12 Oct 2011 22:12:07 +0000 (01:12 +0300)]
Fix helper's Enforce Personality task
The python code did not compile. File object was not created correct.
Nikos Skalkotos [Wed, 12 Oct 2011 19:37:45 +0000 (22:37 +0300)]
Fix helper's delete SSH keys task
Nikos Skalkotos [Wed, 12 Oct 2011 09:04:14 +0000 (12:04 +0300)]
Remove .py extension from EnforcePersonality task
run-parts refuses to execute files with extensions.
Nikos Skalkotos [Wed, 12 Oct 2011 08:50:37 +0000 (11:50 +0300)]
Fix a Makefile bug introduced in the last commit
Nikos Skalkotos [Wed, 12 Oct 2011 08:27:40 +0000 (11:27 +0300)]
Include EnforcePersonality task in Makefile.am
Nikos Skalkotos [Tue, 11 Oct 2011 21:35:32 +0000 (00:35 +0300)]
Fix helper's Enforce Personality task
Vangelis Koukis [Tue, 11 Oct 2011 19:51:20 +0000 (22:51 +0300)]
Fix minor bugs, update AUTHORS
Make sure snf-image-host passes the magic argument
in the kernel command line of the helper VM to activate snf-image-helper,
update AUTHORS.
Nikos Skalkotos [Tue, 11 Oct 2011 11:47:28 +0000 (14:47 +0300)]
Fix a bug in helper's get_distro function
Vangelis Koukis [Mon, 10 Oct 2011 15:16:05 +0000 (18:16 +0300)]
Avoid activating snf-image-helper by mistake
Only activate the snf-image-helper automatically if the caller
has passed a magic argument in the kernel command line.
Require a '--force' argument to activate snf-image-helper,
to avoid accidental execution of the script.
Vangelis Koukis [Mon, 10 Oct 2011 14:40:53 +0000 (17:40 +0300)]
Add top-level README, point to the snf-image Wiki
Vangelis Koukis [Mon, 10 Oct 2011 14:04:14 +0000 (17:04 +0300)]
Minor fixes to documentation
Vangelis Koukis [Mon, 10 Oct 2011 12:42:32 +0000 (15:42 +0300)]
Fix typos, remove reference to $windows_support
Nikos Skalkotos [Mon, 10 Oct 2011 10:41:36 +0000 (13:41 +0300)]
Replace losetup in update-helper with the $LOSETUP
This is really minor, but since we are using a bash var for losetup in
create, which is overwritable from the defaults file, lets keep it that
way.
Nikos Skalkotos [Mon, 10 Oct 2011 07:57:25 +0000 (10:57 +0300)]
Fix some minor things in defaults file
Nikos Skalkotos [Mon, 10 Oct 2011 07:50:19 +0000 (10:50 +0300)]
Fix a var name bug introduced in the last commit
Nikos Skalkotos [Mon, 10 Oct 2011 06:43:27 +0000 (09:43 +0300)]
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).
* Make sure pipelines fail if any command (not only the rightmost)
fails
Nikos Skalkotos [Fri, 7 Oct 2011 12:23:35 +0000 (15:23 +0300)]
Fix minor typos in update-helper script
Nikos Skalkotos [Fri, 7 Oct 2011 10:12:23 +0000 (13:12 +0300)]
Correct the IMAGE_DIR var in the defaults file
Nikos Skalkotos [Fri, 7 Oct 2011 09:51:33 +0000 (12:51 +0300)]
Beautify the output of update-helper script