Disable UAC remote restrictions in windows
Before launching the windows image with KVM, disable the UAC remoterestrictions. This is needed to make the image allow executingcommand through psexec. After the VM is shut down, the restrictionsare turned back on.
Pass the Image instance to the os_type classes
Those classes may need to access more Image data than the guestfshandler and the root device name
Add missing _do_collect_metadata method in Windows
Code Cleanup
Move mount/umount from image to os_type module
Populate the USERS metadata for windows images
For windows images check the appropriate registry keys to find outthe system users
In cleanup_mail sysprep check if mail dirs exist
Check if /var/spool/mail exists before trying to remove the contentof the directory.
Monitor executed syspreps in os_type/__init__.py
Syspreps that have already been executed shouldn't get returned bylist_syspreps
Add cleanup_password sysprep for freebsd
Copy OSFAMILY to OS property if distro is unknown
If libguestfs's inspect_get_distro returns "unknown", then use theOSFAMILY image property value as OS value.
Beautify FreeBSD description returned by guestfs
Monitor passworded users in FreeBSD
In cleanup_userdata sysprep check if /home exists
Move linux specific code from unix.py to linux.py
Add missing docstrings
Clean-up the code using flake8
Fix minor typos
Treat kamaki config files as sensitive data
When cleaning up sensive user data on unix systems, remove .kamakircand .kamaki.history too.
Fix various typos, add .gitignore file
Fix various typos in messages, add .gitignore file forautomatically produced intermediate files.
Fix fix_acpid syspep
Extend the mechanism to recognise events with value "button/power.*" as power button events. It used to only check for events with value"button[ /]power".
Fix cleanup_userdata sysprep
The function used to ignore directories when cleaning sensitive data
Fix minor pep8 error
Do not allow empty USERS metadata fields
If snf-image-creator does not find any passworded user, then theUSERS metadata field is not created at all.
Fix pep8 errors
Fixed many `E127 continuation line over-indented for visual indent'errors
Fix a bug in _get_passworded_users method in Unix
The method used a wrong warning output function
Fix a warning message in linux fix_acpid sysprep
Use vfs_uuid instead of blkid to compute uuid
vfs_uuid is more suitable for this and it whas added before blkidin guestfs, hence it is supported in more guestfs versions.
Add get_sysprep_by_name method in os_type classes
This method returns a sysprep object with a given name. Now,(enable,disable)_sysprep work with sysprep objects instead of sysprepnames
Fix a bug introduced in 2e50092b2437913561a37c646e
The do_sysprep method was not updated to comply with the changesmade in list_syspreps method
In linux.py make sysprep names for descriptive
Add sysprep_info method in os_type classes
This method takes a sysprep object as argument and returns the nameand a description for this object.
Make os_type list_sysprep method return 1 list
The method used to return 2 lists of enabled and disabled sysprepobject. Since sysprep objs contail an `enabled' attribute, it is easyto determine which of those are enabled and which are not. There isno need to return 2 seperate lists.
Fix a bug introduced in 4e58b51b
The error function main.py used for outputing errors has been removedand the code was not updated to use the error method of SimpleOutputoutput class.Also did a minor cleanup: git_os_class function was renamed to os_cls
Unify output by creating a seperated output module
All image-creator components now output messages using an instanceof one of the output classes.
Remove get_metadata() from os_type classes
The metadata are collected in the constructor and are saved in themeta variable. This way they can be accessed and altered by thesysprep methods. There are cases where some metadata are not validand need to be updated after a sysprep action is performed. For...
Add remove_swap_entry sysprep in linux
This action will remove the swap entry from the fstab.
Move get_os_class from image_creator to os_type
This is needed because otherwise setup.py fails on some systems. Alsodo some more cleanup.
Improve help msg for remove-user-accounts sysprep
Fix typos in var names
Add options for enabling/disabling sysprep tasks
Also merge data_cleanup tasks with syspreps and did a major cleanup
Add options for printing sysprep and data cleanup
Add --print-data-cleanup and --print sysprep input options. If enabledthe program will output what data cleanup and syspep operations willand won't run a a selected input media
Fix pep8 error
Add cleanup method that removes user accounts
This method will remove all users that have id over 1000. In mostsystems this will remove all normal user accounts besides the firstone. This method will not run by default.
Add cleanup method that locks all user accounts
Add exclude_task decorator in os_type
This can be used to create a set of by default disabled data_cleanupand sysprep tasks.
Add silent mode option
All printing had to be reordered and now it is done from a central point.
Add a new line the end of the acpid action script
Capitalize all image metadata keys
Fix sysprep_acpid method in linux.
Commit 3f70f24 introduced a bug where the event file was overwritteninstead of the action file.
Fix linux sysprep_acpid & remove output indents
Beautify program's output.
Fix license, copyright and pep8 infractions
Fix a bug in linux sysprep_* methods
The parameter order when calling guestfs.write was incorrect.
Extend data_cleanup method in unix
Add sysprep method in os_type classes.
This is used to prepare the media for image extraction. The maindifference from data_cleanup is that the tasks performed with thismethod are mandatory in order to make the image workable.
Added the following sysprep methods for linux:...
Add cleanup_cache function in unix
This function will remove regular files under /var/cache
Add remove_persistent_net method in linux.
This will remove the persitent net udev rule.
Add convert_to_persistent_dev method in Linux
This method replaces all non-persistent device appearances in fstab andgrub1 with UUIDs.
Add mail and /var/tmp cleanup for unix systems
Fix a bug in get_passworded_users
Add input options and populate image metadata
Hooray! This is the first release that actually works!
Document basic classes and methods
Detect Kubuntu images
This is done checking an Ubuntu image for the presence ofkubuntu-desktop package.
Major code revision
Fix code for cleanup of image data
Add OS specific classes