History | View | Annotate | Download (12.8 kB)
Remove backup file for shadow
In Linux when clearing out the account, remove the backup file:/etc/shadow-
Rename diagnose to inspect
Add diagnose() method in OSBase derived classes
This can be used to perform various tests to determine if the mediais supported.
Add {enable, disable}_guestfs methods in image cls
Don't copy the guestfs handler in the os_type cls
Add support for sysprep-parameters
The user may define parameters needed by the os_type classes to performthe system preparation tasks.
A new needed_sysprep_params method is added to os_type.OSBase thatreturns a list with parameters that should be defined by the user.
Add the sysprep message printing in the decorator
Since all sysprep functions output a message when they get executed,add the message printing functionality to the sysprep decorator
Fix small bugs and clean up the code
Fix some bugs and some other coding issues found using pylint
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
Code Cleanup
Move mount/umount from image to os_type module
Move linux specific code from unix.py to linux.py
Add missing docstrings
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 pep8 errors
Fixed many `E127 continuation line over-indented for visual indent'errors
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.
In linux.py make sysprep names for descriptive
Unify output by creating a seperated output module
All image-creator components now output messages using an instanceof one of the output classes.
Add remove_swap_entry sysprep in linux
This action will remove the swap entry from the fstab.
Add options for enabling/disabling sysprep tasks
Also merge data_cleanup tasks with syspreps and did a major cleanup
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
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.
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 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.
Major code revision
Add OS specific classes