Statistics
| Branch: | Tag: | Revision:

root / image_creator / os_type @ 7b626c6b

# Date Author Comment
7b626c6b 11/01/2013 11:03 am Nikos Skalkotos

Remove backup file for shadow

In Linux when clearing out the account, remove the backup file:
/etc/shadow-

fb136c1c 11/01/2013 10:55 am Nikos Skalkotos

Fix typo in comment

5a33a51f 10/22/2013 12:23 pm Nikos Skalkotos

Rename diagnose to inspect

d0daafa2 10/16/2013 04:46 pm Nikos Skalkotos

Add diagnose() method in OSBase derived classes

This can be used to perform various tests to determine if the media
is supported.

e482b7f9 10/11/2013 06:02 pm Nikos Skalkotos

Allow image creation from unsupported media

Add a new "Unsupported" os_type class. Images that get created from
unsupported media have the EXCLUDE_ALL_TASKS property enabled.

a38447ba 08/22/2013 04:26 pm Nikos Skalkotos

In _foreach_file check if the directory exists

Otherwise print a warning.

981b4504 08/04/2013 04:12 pm Nikos Skalkotos

Fix version check introduced in aca3e6508c7ae3f5ee

The fix was backported to version 1.16.11

419c8d7b 08/03/2013 04:14 pm Nikos Skalkotos

Fix a typo in one of the input options

--print-sysprep should be --print-syspreps

5756c277 08/03/2013 04:05 pm Nikos Skalkotos

Convert check_guestfs_version into an Image method

It used to be a function in util module

0611e6dd 08/03/2013 04:00 pm Nikos Skalkotos

Fix multiple bugs in util.get_kvm_binary

The machine hardware name fetched by `uname m' should have been
stripped, and a --enable-kvm option should be added if the returned
executable was qemu-system
<arch>

df36e2a4 08/02/2013 03:40 pm Nikos Skalkotos

Print a meaningful msg if windows shrinking fails

aca3e650 08/02/2013 01:44 pm Nikos Skalkotos

Raise FatalError for guestfs < 1.17.18 in windows

If the media is windows and guestfs version is less than 1.17.18
raise a Fatal Error. The versions below this have a bug and
inspect_os will fail if the HKLM\SYSTEM\MountedDevices registry key
is missing. This key gets deleted by Microsoft Sysprep

ec8b2a79 08/01/2013 12:26 pm Nikos Skalkotos

Add {enable, disable}_guestfs methods in image cls

b932f59d 08/01/2013 11:12 am Nikos Skalkotos

Fix a typo in a variable name

091c0335 08/01/2013 11:10 am Nikos Skalkotos

Don't copy the guestfs handler in the os_type cls

6f391961 07/31/2013 03:53 pm Nikos Skalkotos

Merge branch 'hotfix-0.4.4' into develop

Conflicts:
image_creator/os_type/unix.py
image_creator/version.py
version

ce66ae38 07/31/2013 01:33 pm Nikos Skalkotos

Check if scrubbing is supported

Don't try to scrub data unless the used guestfs appliance supports
it

c5effe03 07/30/2013 05:40 pm Nikos Skalkotos

Ignore the absence pagefile.sys in windows

4246a133 07/30/2013 04:44 pm Nikos Skalkotos

Add a function for finding out the kvm binary

On some systems it is kvm, on some others it is qemu-system-x86_64. On
32bit PC it is qemu-system-i386

0eac0256 07/30/2013 04:43 pm Nikos Skalkotos

Add support for sysprep-parameters

The user may define parameters needed by the os_type classes to perform
the system preparation tasks.

A new needed_sysprep_params method is added to os_type.OSBase that
returns a list with parameters that should be defined by the user.

b21b5519 07/30/2013 04:43 pm Nikos Skalkotos

Add option for printing the needed sysprep params

74780ad6 07/30/2013 04:43 pm Nikos Skalkotos

Add support for performing sysprep on windows

In windows the do_sysprep method shuts down the guestfs vm and boots
the image. This allows executing windows commands on the image remotely.

10088af7 07/30/2013 04:43 pm Nikos Skalkotos

Monitor when the windows VM is up and running

b8d4b14a 07/30/2013 04:43 pm Nikos Skalkotos

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

b9e14923 07/30/2013 04:43 pm Nikos Skalkotos

Add various Windows syspreps

c2113d72 07/30/2013 04:43 pm Nikos Skalkotos

Disable the Windows firewall when the syspreps run

811b7149 07/30/2013 04:43 pm Nikos Skalkotos

Add new windows sysprep for disabling hibernation

f94adfe0 07/30/2013 04:43 pm Nikos Skalkotos

Add kwargs parameter to sysprep decorator

This can be used to add arbitrary attributes to the function it
decorates

85e97ae0 07/30/2013 04:43 pm Nikos Skalkotos

Workaround a hivex bug

Reset the LocalAccountTokenFilterPolicy registry key in RunOnce. This
key is set by hivex offline when you boot windows, it seems to have a
wrong value.

2075a76a 07/30/2013 04:43 pm Nikos Skalkotos

Add sysprep in windows to clear the event logs

17649dd6 07/30/2013 04:43 pm Nikos Skalkotos

Make sysprep_info return a named tuple

It used to return a tuple

efa7a61b 07/30/2013 04:43 pm Nikos Skalkotos

Add sysprep for shrinking in windows

It is not ready yet.

d4270a48 07/30/2013 04:43 pm Nikos Skalkotos

Add support for shrinking windows VMs

76f2ae77 07/30/2013 04:43 pm Nikos Skalkotos

Sleep for 10 secs after you monitor Windows is up

When syspreping a Windows image, sleep for 10 seconds before you
continue performing the various system preparation tasks.

684a5524 07/30/2013 04:43 pm Nikos Skalkotos

Add kms_client_setup sysprep for windows images

This sysprep converts the windows image into a KMS client

7dc92081 07/30/2013 04:43 pm Nikos Skalkotos

Use --uninstall in winexe

c53cc8dd 07/30/2013 04:43 pm Nikos Skalkotos

Mix minor typos

f5873ed0 07/30/2013 04:43 pm Nikos Skalkotos

Add a new winexe module

This contains a wrapper class for winexe utility

520d991d 07/30/2013 04:43 pm Nikos Skalkotos

Monitor VM ps when waiting for windows booting

When waiting for windows to boot, also check that the Windows VM
process is up.

8bae613f 07/30/2013 04:43 pm Nikos Skalkotos

Add connectivity checks for the windows VM

When booting the windows VM during sysprep, check if winexe works
before starting the system preparation tasks

23c82433 07/30/2013 04:43 pm Nikos Skalkotos

Fix a bug in windows shrink sysprep

Make sure winexe returns error if a diskpart command fails

759e5d5b 07/30/2013 04:43 pm Nikos Skalkotos

Don't list disabled users in Windows

Fix _get_users method in windows.py to not list user accounts that
are disabled.

f59ad913 07/30/2013 04:43 pm Nikos Skalkotos

Add decorators defining sysprep params

47505e53 07/30/2013 04:43 pm Nikos Skalkotos

Fix small bugs and clean up the code

Fix some bugs and some other coding issues found using pylint

678b382b 07/30/2013 04:43 pm Nikos Skalkotos

Add type field in the SysprepParam namedtuple

This is needed since the input we get from the input dialogs is
always strings.

82e8c357 07/30/2013 04:43 pm Nikos Skalkotos

In windows.py turn some constants to syspep params

Remove constants BOOT_TIMEOUT, SHUTDOWN_TIMEOUT and CONNECTION_RETRIES
and add then as sysprep_parameters

640096fb 07/30/2013 04:43 pm Nikos Skalkotos

Disable UAC remote restrictions in windows

Before launching the windows image with KVM, disable the UAC remote
restrictions. This is needed to make the image allow executing
command through psexec. After the VM is shut down, the restrictions
are turned back on.

797e0df7 07/30/2013 04:43 pm Nikos Skalkotos

Pass the Image instance to the os_type classes

Those classes may need to access more Image data than the guestfs
handler and the root device name

9ca717c4 07/30/2013 04:43 pm Nikos Skalkotos

Add basic support for customizing windows images

Add do_sysprep method for windows that shuts down the guestfs backend
process and starts a new kvm process with the snapshot disk attached to
it.

b8c0848c 06/26/2013 07:20 pm Nikos Skalkotos

Add missing _do_collect_metadata method in Windows

121f3bc0 06/11/2013 05:41 pm Nikos Skalkotos

Code Cleanup

  • Prefix all private methods with _
  • Write missing docstrings
  • Move all public methods above the private ones
  • Add module docstrings where missing
  • Define source code encodings on all modules
71b0ab28 06/07/2013 03:24 pm Nikos Skalkotos

Move mount/umount from image to os_type module

76b200cf 06/03/2013 06:19 pm Nikos Skalkotos

Populate the USERS metadata for windows images

For windows images check the appropriate registry keys to find out
the system users

a0909794 05/23/2013 04:57 pm Nikos Skalkotos

In cleanup_mail sysprep check if mail dirs exist

Check if /var/spool/mail exists before trying to remove the content
of the directory.

fa65eda1 05/23/2013 04:52 pm Nikos Skalkotos

Monitor executed syspreps in os_type/__init__.py

Syspreps that have already been executed shouldn't get returned by
list_syspreps

e56edd29 05/22/2013 02:12 pm Nikos Skalkotos

Add cleanup_password sysprep for freebsd

d8a12a7e 05/21/2013 05:08 pm Nikos Skalkotos

Copy OSFAMILY to OS property if distro is unknown

If libguestfs's inspect_get_distro returns "unknown", then use the
OSFAMILY image property value as OS value.

6d7f7fce 05/21/2013 05:06 pm Nikos Skalkotos

Beautify FreeBSD description returned by guestfs

9fe161f8 05/21/2013 02:35 pm Nikos Skalkotos

Monitor passworded users in FreeBSD

6df939f7 05/21/2013 10:47 am Nikos Skalkotos

In cleanup_userdata sysprep check if /home exists

2dcd42b7 04/25/2013 01:49 pm Nikos Skalkotos

Move linux specific code from unix.py to linux.py

88f83027 03/28/2013 02:26 pm Nikos Skalkotos

Add missing docstrings

61d14323 03/22/2013 02:57 pm Nikos Skalkotos

Clean-up the code using flake8

4a35faa5 01/04/2013 07:26 pm Nikos Skalkotos

Fix minor typos

e36b5b14 01/04/2013 02:14 pm Nikos Skalkotos

Treat kamaki config files as sensitive data

When cleaning up sensive user data on unix systems, remove .kamakirc
and .kamaki.history too.

dcf9274b 09/01/2012 06:29 pm Vangelis Koukis

Fix various typos, add .gitignore file

Fix various typos in messages, add .gitignore file for
automatically produced intermediate files.

c0f3abdc 08/29/2012 12:07 pm Nikos Skalkotos

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".

e1e7b843 08/29/2012 11:54 am Nikos Skalkotos

Fix cleanup_userdata sysprep

The function used to ignore directories when cleaning sensitive data

af45cf2f 08/22/2012 12:18 pm Nikos Skalkotos

Fix minor pep8 error

5f7e1e0c 08/08/2012 03:40 pm Nikos Skalkotos

Do not allow empty USERS metadata fields

If snf-image-creator does not find any passworded user, then the
USERS metadata field is not created at all.

f99fe99d 06/28/2012 01:20 am Nikos Skalkotos

Fix pep8 errors

Fixed many `E127 continuation line over-indented for visual indent'
errors

564a18ce 06/27/2012 12:59 pm Nikos Skalkotos

Fix a bug in _get_passworded_users method in Unix

The method used a wrong warning output function

e55f4b3c 06/25/2012 04:04 pm Nikos Skalkotos

Fix a warning message in linux fix_acpid sysprep

20409e9f 06/25/2012 02:39 pm Nikos Skalkotos

Use vfs_uuid instead of blkid to compute uuid

vfs_uuid is more suitable for this and it whas added before blkid
in guestfs, hence it is supported in more guestfs versions.

e7cbfb0a 06/21/2012 06:10 pm Nikos Skalkotos

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 sysprep
names

f8cccab5 06/21/2012 02:13 am Nikos Skalkotos

Fix a bug introduced in 2e50092b2437913561a37c646e

The do_sysprep method was not updated to comply with the changes
made in list_syspreps method

755e1885 06/20/2012 06:30 pm Nikos Skalkotos

In linux.py make sysprep names for descriptive

12078c7e 06/20/2012 04:28 pm Nikos Skalkotos

Add sysprep_info method in os_type classes

This method takes a sysprep object as argument and returns the name
and a description for this object.

2e50092b 06/20/2012 03:17 pm Nikos Skalkotos

Make os_type list_sysprep method return 1 list

The method used to return 2 lists of enabled and disabled sysprep
object. Since sysprep objs contail an `enabled' attribute, it is easy
to determine which of those are enabled and which are not. There is
no need to return 2 seperate lists.

bb4db5a8 06/14/2012 11:37 am Nikos Skalkotos

Fix a bug introduced in 4e58b51b

The error function main.py used for outputing errors has been removed
and the code was not updated to use the error method of SimpleOutput
output class.
Also did a minor cleanup: git_os_class function was renamed to os_cls

e77e66a9 06/05/2012 07:08 pm Nikos Skalkotos

Unify output by creating a seperated output module

All image-creator components now output messages using an instance
of one of the output classes.

5886f568 05/18/2012 07:14 pm Nikos Skalkotos

Remove get_metadata() from os_type classes

The metadata are collected in the constructor and are saved in the
meta variable. This way they can be accessed and altered by the
sysprep methods. There are cases where some metadata are not valid
and need to be updated after a sysprep action is performed. For...

4a2fd05c 05/16/2012 03:23 pm Nikos Skalkotos

Add remove_swap_entry sysprep in linux

This action will remove the swap entry from the fstab.

5b801534 04/29/2012 03:21 pm Nikos Skalkotos

Move get_os_class from image_creator to os_type

This is needed because otherwise setup.py fails on some systems. Also
do some more cleanup.

50273553 04/19/2012 04:05 pm Nikos Skalkotos

Improve help msg for remove-user-accounts sysprep

6f319b6a 04/19/2012 03:58 pm Nikos Skalkotos

Fix typos in var names

f165adc0 04/10/2012 04:38 pm Nikos Skalkotos

Add options for enabling/disabling sysprep tasks

Also merge data_cleanup tasks with syspreps and did a major cleanup

76d4a1c9 04/09/2012 03:09 pm Nikos Skalkotos

Add options for printing sysprep and data cleanup

Add --print-data-cleanup and --print sysprep input options. If enabled
the program will output what data cleanup and syspep operations will
and won't run a a selected input media

4cab6d62 04/09/2012 03:08 pm Nikos Skalkotos

Fix pep8 error

a9c9d939 04/06/2012 06:08 pm Nikos Skalkotos

Add cleanup method that removes user accounts

This method will remove all users that have id over 1000. In most
systems this will remove all normal user accounts besides the first
one. This method will not run by default.

51fab9c9 04/05/2012 05:36 pm Nikos Skalkotos

Add cleanup method that locks all user accounts

0144d7c7 04/05/2012 04:26 pm Nikos Skalkotos

Add exclude_task decorator in os_type

This can be used to create a set of by default disabled data_cleanup
and sysprep tasks.

979096dd 03/24/2012 02:54 pm Nikos Skalkotos

Add silent mode option

All printing had to be reordered and now it is done from a central point.

fc54978e 03/24/2012 10:50 am Nikos Skalkotos

Add a new line the end of the acpid action script

39cfd61a 03/24/2012 10:40 am Nikos Skalkotos

Capitalize all image metadata keys

d144e954 03/21/2012 08:46 pm Nikos Skalkotos

Fix sysprep_acpid method in linux.

Commit 3f70f24 introduced a bug where the event file was overwritten
instead of the action file.

3f70f242 03/21/2012 08:14 pm Nikos Skalkotos

Fix linux sysprep_acpid & remove output indents

22a6d232 03/20/2012 06:04 pm Nikos Skalkotos

Beautify program's output.

ae48a082 03/19/2012 12:26 pm Nikos Skalkotos

Fix license, copyright and pep8 infractions

3d083be5 03/16/2012 05:36 pm Nikos Skalkotos

Fix a bug in linux sysprep_* methods

The parameter order when calling guestfs.write was incorrect.