History | View | Annotate | Download (15.5 kB)
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.
Allow image creation from unsupported media
Add a new "Unsupported" os_type class. Images that get created fromunsupported media have the EXCLUDE_ALL_TASKS property enabled.
Use forceall in e2fsck if available
Before shrinking a filesystem use the e2fsck -y if the underlinedguestfs library supports it.
Convert check_guestfs_version into an Image method
It used to be a function in util module
Workaraound the old behaviour of kill_subprocess
Before libguestfs 1.18.4 you cannot shutdown the backend and thenrelaunch it
Add {enable, disable}_guestfs methods in image cls
Remove bootable options from image class
It has never been used. If we need it in the future, we will bringit back
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 check_guestfs_version function
This function is used to check if a specified libguestfs version issmaller, greater or equal to the installed one
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
Minor warning message change
Support mounting freebsd ufs filesystems
UFS2 filesystems don't get automatically detected by the linuxkernel. We need to explicitly state the correct filesystem typeand options
Handle better images with distro="unknown"
If the ostype returned by libguestfs is valid and distro in unknown,don't print the distro at all.
Add missing docstrings
Rename DiskDevice class to Image
Rename DiskDevice class to Image and move it to a seperate module.Also, don't let the user access the os_type/* modules directly. InImage class create the `os' member variable that will host anappropriate instance of one of the OSBase classes.