Rename Disklabel cls to Disk in disklabel.py
Do a code cleanup
Create BSD_Disklabel class in disklabel.py
We need this class to support {Free,Net}BSD disklabels
Check in MountImage task if /etc/fstab is present
Add an extra check to determine if the user gave the correctROOT_PARTITION property
Cleanup disklabel.py
Remove --print-last-linux and change some other argument names
Rewrite the MountImage task
Add code to read /etc/fstab of the *BSD images and mount the remainingfilesystems during MountImage. This only worked for Linux
Remove NUL chars from the output of disklabel.py
Show the partition label in diskpart -l
Minor pep8 error in disklabel.py
Fix a bug in disklabel enlarge code
If the disk size is greater that 8G then the CHS value of the MBRwill overflow. We should assign a fixed CHS value for this case.
Remount every UFS partition rw just to be sure
In many cases although rw flags is passed to mount, the commandreturns SUCCESS with a warning that the fs seems to be mounted ro.Remounting rw does work.
Use blockdev instead of partprobe after disklabel
partprobe creates the partitions by itself and since it does notsupport disklabels, the disklabel partitons are not recreated
Run partprobe after diskpart.py
After disklabel.py enlarges the partition the kernel must beinformed about this
Add support for resizing OpenBSD UFS file systems
Add support for enlarging OpenBSD images
This only enlarges the partition and not the ufs file system
Use /etc/motd to check if a system is OpenBSD
In OpenBSD the first line(s) get overwritten upon each boot bythe rc scripts and kernel informations are added
Rename snf-passtohash.py to hashpwd.py
Fix a bug in ChagePassword task
In some cases the task removed some shadow/master.passwd entries byaccident because the grep pattern it used was more general than itshould be
The value of DO_SYNC property should be "yes"
In order to reenable fsync() the DO_SYNC image property should bedefined like this:DO_SYNC=yes
Add a new PASSWORD_HASHING_METHOD image property
This can be used to override the hashing function ChangePasswordtask uses. By default for linux and freebsd images, sha512 is used.For OpenBSD blowfish and for NetBSD sha1.
Fix a minor bash variable expansion error
It only affects the printing of an information string
Make snf-passtohash.py comply with pep8
Add support for sha1 hashing method
This is the default password hashing method for NetBSD.
Fix a function name typo in AssignHostname task
Add support for Blowfish passwd hashing algorithm
This is not supported by the Linux version of crypt and is neededfor NetBSD and OpenBSD. Add a new python-bcrypt packet in the helperthat implements the OpenBSD Blowfish password hashing algorithm.
Define {open,net}bsd_shadow vars in ChangePassword
Those variables are needed to make ChangePassword work
Fix DeleteSSHKeys to work on non-linux systems
Add code to detect openbsd flavors
Add code for detecting NetBSD's in get_distro
Fix a awk bug in get_ufstype function
Fix a variable typo in MountImage task
Add partial support for NetBSD and OpenBSD
Resizing NetBSD and OpenBSD partitions, as well as FFS filesystemsdoes not work for now
helper: Fix a bug triggered by corrupted images
Fix a bug in get_partition_to_resize where the script would not stopif the get_partition_table function failed, leading to bash syntaxerrors.
Merge the ChangeLog files into one
Update ChangeLog and version file for 0.10
Update ChangeLogs and version.m4 for 0.9.3
Update ChangeLogs and version.m4 for v0.9.2
Make use of devflow building system
Update ChangeLogs and configure.ac for ver 0.9.1
Update ChangeLogs and configure.ac for ver 0.9
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.
Make file injection work with freebsd
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'
Correct some pep8 errors in the python helpers
Update ChangeLogs and configure.ac for ver 0.8.1
Update contact email address
Use synnefo@googlegroups.com as email for feedback and bug reports
Update ChangeLogs and configure.ac for version 0.8
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.
Update ChangeLog and configure.ac for ver. 0.7.6
Fix a bug in DeleteSSHkeys
The code for checking for non-default keys was never called
Mount /dev & /proc in the helper before chrooting
Update ChangeLog and configure.ac for ver. 0.7.5
Update ChangeLog and configure.ac for ver. 0.7.4
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
Update ChangeLog and configure.ac for ver. 0.7.3
Update ChangeLog and configure.ac for ver. 0.7.2
Fix AssignHostname task for arch linux
If both /etc/rc.conf and /etc/hostname are missing, create the latterto host the hostname.
Treat partitions with id="f" as extended
Partitions with id=0x0F are extended partitions with LBA addressing.
Check for /etc/hostname in AssignHostname task
By default without investigating the distro of the guest VM, checkfor the presence of /etc/hostname file. This is the default placefor static host names in systems that use the systemd startup deamon.
Fix helper's error monitoring system
Fix a bug where errors that where not created using log_error wherenot registered to the monitoring subsystem.
del c:\windows\panther\unattend.xml after sysprep
Make sure the cached unattend xml file gets deleted after sysprep
Update ChangeLog and configure.ac for ver. 0.7.1
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.
Update ChangeLog and configure.ac for ver. 0.7
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.
Update ChangeLog and configure.ac for ver. 0.6.5
Fix a bug introduced in 9fca5245a2eae67af86719bb0f
AssignHostname task did not search for Unattend.xml in a caseinsensitive way.
Update ChangeLog and configure.ac for ver. 0.6.4
Update ChangeLog and configure.ac for ver. 0.6.3
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.
Check if the img_properties are decoded correct
In image helper, check if decode-properties.py returned 0 and logthe error if this is not the case.
Fix minor typo in ChangePassword task
Don't overwrite C:\Unattend.xml in the windows
If unattend.xml is present in the windows image, use this one unlessUSE_DEFAULT_UNATTEND is specified as an image property.
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
Update ChangeLog and configure.ac for ver. 0.6.2
Update ChangeLog and configure.ac for version 0.6.1
In ChangePassword task check if the users exist
Check if the users stated in the USERS image property do actuallyexist.
Suppress a reglookup warning
Hundred of warnings like this: `WARN: While quoting value for'<registry_key>', warning returned: Data could not be interpreted,quoting raw buffer.' are outputed when reglookup reads the registryof a Windows 2012 system.
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.
Add back the snf_image_activate_helper check
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
Drop the `user' password reset rule
Drop the rule that resets the password for user with username `user'if the USERS image property is missing and the system is detectedto be a Fedora or a Ubuntu Linux system.