History | View | Annotate | Download (13.5 kB)
Remove duplicated error report in the helper
Add some extra checks on FreeBSD images
Fix yet another bug in the helper monitoring code
In bash command substitution may trim the output. We need to countthe stderr lines after we use tail and not before
Fix a bug in the extended partition detection code
Sometimes sfdisk --print-id does not return the id because iterroneously detects the partition as being GPT. Add a --force toovercome this.
Fix a bug in the helper monitoring code
In the STDERR command a `:' was missing
Add support for FreeBSD
File injection isn't implemented yet
Use sgdisk to create gpt partitions
Replace fix_gpt.py script with `sgdisk -e'
Make helper_ip and monitor_port configurable
Let the host system provide those values to the helper through thekernel command line.
Monitor helper through UDP packages in xen
Make monitoring work with xen
Remove hardcoded FLOPPY_DEV in helper
Check the cmdline of the kernel to determine what device to checkfor find the rules file
In xen use the helper image in ro mode
Make sure everything works even when the root filesystem in the helperVM is mounted read-only.
Merge branch 'master' into xen
Conflicts: snf-image-helper/common.sh snf-image-host/Makefile.am snf-image-host/common.sh.in snf-image-host/create snf-image-host/defaults
Cleanup Xen code
Make it comply with the rest of the software. Some things are notready yet.
Mount all local filesystems when deploying images
If the image has /home on a different partition than /, thenwe'll need to have it mounted to inject files on a user's homedirectory.
Fix a bug in get_partition_to_resize
Fix a typo in a variable name
Treat partitions with id="f" as extended
Partitions with id=0x0F are extended partitions with LBA addressing.
Fix helper's error monitoring system
Fix a bug where errors that where not created using log_error wherenot registered to the monitoring subsystem.
In helper put sysrq shutdown cmd in an inf loop
This is needed because in some cases, the init could exit before thesystem shut down causing a KERNEL PANIC.
Credit psomas@grnet.gr for the helper VM shutdown
Stratos Psomadakis suggested to shutdoen the helper VM using the `o'Magic SsysRq key
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.
Fix a bug introduced in 9fca5245a2eae67af86719bb0f
AssignHostname task did not search for Unattend.xml in a caseinsensitive way.
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.
Fix the error messages in helper
Fix a bug in the helper's monitoring system
Fix a bug where the helper will not send a image-helper-error msgif an error occures when running snf-image-helper main script andnot one of the configuration tasks.
Conflicts:
snf-image-helper/common.sh
Use socat to dump helper messages in case of xen
Helper gets a dummy interface and communication between helperand host is done via socat STDIO INTERFACE:eth0/vif$helperid.0
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Make use of XenStore to export SUCCESS msg
Xen support
Support launching helper domain on top of Xen hypervisor under PV mode.
Helper VM becomes hypervisor aware by passing hypervisor=$HYPERVISORin the kernel command line and thus acts accordingly (which loggingdevices to use, what disk/floppy devices to expect, etc)...
Disable fsyncs in helper's VM resize operation
You can disable this behaviour by defining the DO_SYNC image property.
Remove the boot and shutdown process in helper VM
Make snf-image-helper ran as init process when calling the helperVM. Also make the helper VM shut down quickly by using the shut offSysRq.
Use UTC when calling date command
Add support for archlinux
Add helper-monitor.py program
This program transforms raw helper monitor messages into json stringsunder very strict rules. This reduces security concerns since thehelper VM output cannot be trusted.
Make the name of image properties case-insensitive
Defining EXCLUDE_TASK_DeleteSSHKeys is the same as definingEXCLUDE_TASK_DELETESSHKEYS
cleanup! cleanup! cleanup! cleanup!
Cleanup monitoring code pt2
Cleanup monitoring code
Add start-task and finish-task events
This commit extendes the monitoring mechanism to include events fromsnf-image-helper.
Fix a bug introduced in 01da0f7d58e0bf30f06755d802
Fix a bug where the partition that should be resized in some caseswas computed in a wrong way
Add AddSwap task
This task is used to set up the swap partition previously created byFixPartitionTable task and to add a swap entry in the instances fstabfile.
Remove redundant normalize_unit function
Add swap partition if SWAP property is defined
Add support for logical partitions
Now FixPartitionTable task can enlarge logical partitions
Add a partition table check in FixPartitionTable
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.
Fix OS detection for SuSE and gentoo
Handle unknown linux distro situations
When get_distro and get_base_distro do not detect the linux distributiona warning is triggered.
AssignHostname fails if the distribution is not known.
Remove fs check before resizing a partition.
Check if the filesystem is clean, and fail if not.
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 systemdeployment can't break. If you don't want to mount the image or installUnattend.xml then you probably want to use EXCLUDE_ALL_TASKS, since all...
Change the format of the "exclude task" properties
New format: EXCLUDE_TASK_<task_name>
Do fs check before reseizing ext{2,3,4} partitions
Fix copyright and license notices throughout
Disable RDP connection during windows setup
Make exclude task vars comply to property format
The should look like this: SNF_IMAGE_PROPERTY_<TASK_NAME>_TASK
Minor fixes in helper's tasks
Add code to make task exclusion possible
Add diskdump support in the helper (part 2)
Add diskdump support in the helper (part 1)
Fix a bug in helper's get_distro function
Fix typos, remove reference to $windows_support
Mass cleanup and some bug fixing
Fix a bug in helper's common.sh
It's the same thing fixed in 9aac6898988ab63e7e323d745c41dfb927c51b2fin the host's code
Rename helper to snf-image-helper
Also add Changelog and COPYING info