snf-image-creator
6 years agoFix a bug in rsync
Nikos Skalkotos [Mon, 24 Dec 2012 12:23:32 +0000 (14:23 +0200)]
Fix a bug in rsync

The exclude patterns should contain relative to the source paths

6 years agoIn bundle volume copy host files with rsync
Nikos Skalkotos [Sun, 23 Dec 2012 19:12:55 +0000 (21:12 +0200)]
In bundle volume copy host files with rsync

6 years agoCreate fs in image partitions in bundle_volume
Nikos Skalkotos [Thu, 20 Dec 2012 18:16:40 +0000 (20:16 +0200)]
Create fs in image partitions in bundle_volume

Also do a code cleanup

6 years agoFix bugs in bundle_volume module
Nikos Skalkotos [Wed, 19 Dec 2012 17:04:38 +0000 (19:04 +0200)]
Fix bugs in bundle_volume module

The partition table of the image is created correct. The partitions
are not yet filled.

6 years agoFurther development in bundle_volume
Nikos Skalkotos [Wed, 19 Dec 2012 14:22:49 +0000 (16:22 +0200)]
Further development in bundle_volume

Nothing is working yet

6 years agoMerge branch 'stable-0.1'
Nikos Skalkotos [Mon, 17 Dec 2012 10:46:24 +0000 (12:46 +0200)]
Merge branch 'stable-0.1'

6 years agoMerge branch 'stable-0.1-hd' into stable-0.1
Nikos Skalkotos [Mon, 17 Dec 2012 10:17:07 +0000 (12:17 +0200)]
Merge branch 'stable-0.1-hd' into stable-0.1

6 years agoFix errors introduced in 9517bf29dadbb4f1257f240bc
Alex Pyrgiotis [Fri, 14 Dec 2012 17:20:24 +0000 (19:20 +0200)]
Fix errors introduced in 9517bf29dadbb4f1257f240bc

6 years agoFix the image partitions in bundle_volume
Nikos Skalkotos [Thu, 13 Dec 2012 17:01:52 +0000 (19:01 +0200)]
Fix the image partitions in bundle_volume

Check the file system usage and accordingly reduce the size of the
last partition in the image.

6 years agoRestore original image creation example
Alex Pyrgiotis [Thu, 13 Dec 2012 14:24:30 +0000 (16:24 +0200)]
Restore original image creation example

Also, add a warning about LVM, the need for openssh-server, memmory
parameter for KVM and md5sum for the dowloaded iso.

6 years agoUpdate usage section with an example
Alex Pyrgiotis [Thu, 13 Dec 2012 11:34:34 +0000 (13:34 +0200)]
Update usage section with an example

The example has been copied from okeanos-guides. However, some
of the example's steps have been ommited (e.g. the installation of
snf-image-creator). Also, the focus has been shifted from ~okeanos to a
run-of-the-mill synnefo deployment.

6 years agoFix a pep8 error
Nikos Skalkotos [Thu, 13 Dec 2012 09:33:24 +0000 (11:33 +0200)]
Fix a pep8 error

6 years agoFuther development for bundle_volume
Nikos Skalkotos [Mon, 10 Dec 2012 18:24:16 +0000 (20:24 +0200)]
Futher development for bundle_volume

Create a sparse file under /mnt in the size of the root hard disk
and copy the mbr into this file. Not yet workable.

6 years agoBump version to 0.1.1 v0.1.1
Nikos Skalkotos [Mon, 3 Dec 2012 17:32:54 +0000 (19:32 +0200)]
Bump version to 0.1.1

6 years agoCorrect some typos
Alex Pyrgiotis [Thu, 29 Nov 2012 07:45:59 +0000 (09:45 +0200)]
Correct some typos

6 years agoCorrect typos in installation doc
Alex Pyrgiotis [Wed, 28 Nov 2012 17:47:11 +0000 (19:47 +0200)]
Correct typos in installation doc

6 years agoRemove unwanted spaces
Alex Pyrgiotis [Wed, 28 Nov 2012 17:20:24 +0000 (19:20 +0200)]
Remove unwanted spaces

6 years agoRestore older way of installing snf-image-creator
Alex Pyrgiotis [Wed, 28 Nov 2012 17:12:20 +0000 (19:12 +0200)]
Restore older way of installing snf-image-creator

The older method of installing snf-image-creator from source is restored
and presented alongside the official package installation method.

6 years agoUpdate installation method of sf-image-creator
Alex Pyrgiotis [Wed, 28 Nov 2012 15:19:24 +0000 (17:19 +0200)]
Update installation method of sf-image-creator

Drop python installation method in favor of a simpler method using
packages from the apt.dev.grnet.gr repo.

6 years agoDo not apt-get python-gevent and python-dev
Alex Pyrgiotis [Mon, 26 Nov 2012 07:17:05 +0000 (09:17 +0200)]
Do not apt-get python-gevent and python-dev

As stated in commit b50531496d1d44e5562cc164364eb5373f2f9e5e, these
packages are not needed for the installation of snf-image-creator.

6 years agoCorrect dependencies list
Alex Pyrgiotis [Mon, 26 Nov 2012 01:12:37 +0000 (03:12 +0200)]
Correct dependencies list

Remove python-gevent and python-dev from the dependencies list for
snf-image-creator. These two packages were needed for kamaki < 0.1
version, but now are obsolete.

6 years agoBring installation instructions up-to-date
Alex Pyrgiotis [Thu, 22 Nov 2012 18:53:07 +0000 (20:53 +0200)]
Bring installation instructions up-to-date

6 years agoRemove overlapping content with okenos-guides
Alex Pyrgiotis [Thu, 22 Nov 2012 16:10:41 +0000 (18:10 +0200)]
Remove overlapping content with okenos-guides

This is the initial commit of the okeanos-helpdesk branch.
The main purpose of this branch is to:
* Move non-technical parts (e.g examples) to the okeanos-guides docs,
  where they can be presented in a more user-oriented way
* Correct minor omissions that okeanos-helpdesk has encountered during
  the testing of the image-creator tool

6 years agoAdd new bundle_volume module
Nikos Skalkotos [Wed, 21 Nov 2012 14:14:24 +0000 (16:14 +0200)]
Add new bundle_volume module

This is not yet workable but it will host the code for creating
images out of a running system.

6 years agoAdd "Running System" button in media selection
Nikos Skalkotos [Wed, 21 Nov 2012 08:26:31 +0000 (10:26 +0200)]
Add "Running System" button in media selection

This can be used to create an image out of a live system. This
functionality is not yet implemented.

6 years agoFix a bug in dialog wizard
Nikos Skalkotos [Tue, 20 Nov 2012 16:52:40 +0000 (18:52 +0200)]
Fix a bug in dialog wizard

The program would crash when running in wizard mode if the account
or token where missing from the .kamakirc file.

6 years agoRevert "Monkey patch the source to work with gevent" v0.1
Nikos Skalkotos [Mon, 5 Nov 2012 10:34:12 +0000 (12:34 +0200)]
Revert "Monkey patch the source to work with gevent"

This reverts commit 883e57b07a5cfcb2d0462d67399bfa57bacba846.
Drop the greenlet support.

6 years agoMonkey patch the source to work with gevent
Nikos Skalkotos [Fri, 2 Nov 2012 11:39:24 +0000 (13:39 +0200)]
Monkey patch the source to work with gevent

Needed by new kamaki, otherwise it throughs an exception at the end.

6 years agoUse py-sendfile in favor of pysendfile
Nikos Skalkotos [Fri, 2 Nov 2012 11:08:32 +0000 (13:08 +0200)]
Use py-sendfile in favor of pysendfile

The former is older but there are packages for it in distros like
Ubuntu.

6 years agoFix the import path for kamaki config module
Nikos Skalkotos [Thu, 1 Nov 2012 18:37:03 +0000 (20:37 +0200)]
Fix the import path for kamaki config module

It has changed after the last major revision and was not updated.

6 years agoMake snf-image-creator compatible with kamaki 0.6
Nikos Skalkotos [Wed, 31 Oct 2012 13:15:08 +0000 (15:15 +0200)]
Make snf-image-creator compatible with kamaki 0.6

6 years agoDo not hide the cursor when showing a progress bar
Nikos Skalkotos [Tue, 23 Oct 2012 14:06:56 +0000 (17:06 +0300)]
Do not hide the cursor when showing a progress bar

This is a workaround for a progress bar bug, where the system may
stay with the cursor hidden if finish() is not called.

6 years agoUpdate the doc to reflect the pbs to sh change
Nikos Skalkotos [Tue, 23 Oct 2012 09:17:34 +0000 (12:17 +0300)]
Update the doc to reflect the pbs to sh change

6 years agoDrop pbs dependency in favor of sh
Nikos Skalkotos [Mon, 22 Oct 2012 14:46:20 +0000 (17:46 +0300)]
Drop pbs dependency in favor of sh

PBS has now bocome sh.

6 years agoAdd the media source in the background title
Nikos Skalkotos [Fri, 19 Oct 2012 10:38:45 +0000 (13:38 +0300)]
Add the media source in the background title

6 years agoRephrase the caveats on image creation doc section
Nikos Skalkotos [Thu, 18 Oct 2012 14:42:39 +0000 (17:42 +0300)]
Rephrase the caveats on image creation doc section

Thank you cven.

6 years agoHandle keaboard interrupts and TERM signals.
Nikos Skalkotos [Thu, 18 Oct 2012 14:24:57 +0000 (17:24 +0300)]
Handle keaboard interrupts and TERM signals.

6 years agoRemove the goto(1) empty progress bar workaround
Nikos Skalkotos [Thu, 18 Oct 2012 10:40:23 +0000 (13:40 +0300)]
Remove the goto(1) empty progress bar workaround

Add progress >= 1.0.2 as install_dependency, since this is the version
that fixed the empty progress bar problem.

6 years agoSmall refinements in the documentation
Nikos Skalkotos [Thu, 18 Oct 2012 10:15:50 +0000 (13:15 +0300)]
Small refinements in the documentation

6 years agoMount the media ro if --print-sysprep is specified
Nikos Skalkotos [Thu, 18 Oct 2012 08:37:41 +0000 (11:37 +0300)]
Mount the media ro if --print-sysprep is specified

6 years agoUpdate snf-image-creator usage documentation
Nikos Skalkotos [Wed, 17 Oct 2012 14:36:48 +0000 (17:36 +0300)]
Update snf-image-creator usage documentation

Add missing sections

6 years agoUpdate snf-image-creator usage documentation
Nikos Skalkotos [Tue, 16 Oct 2012 13:54:15 +0000 (16:54 +0300)]
Update snf-image-creator usage documentation

Add a part explaining the usage and input options of the
non-interactive version of snf-image-creator.

6 years agoUpdate image properties help page
Nikos Skalkotos [Tue, 16 Oct 2012 10:46:02 +0000 (13:46 +0300)]
Update image properties help page

Add SORTORDER image property

6 years agoAdd basic usage documentation
Nikos Skalkotos [Mon, 15 Oct 2012 14:45:03 +0000 (17:45 +0300)]
Add basic usage documentation

6 years agoAdd documentation for installing snf-image-creator
Nikos Skalkotos [Mon, 15 Oct 2012 11:23:39 +0000 (14:23 +0300)]
Add documentation for installing snf-image-creator

6 years agoInitial commit for the documentation
Nikos Skalkotos [Mon, 8 Oct 2012 14:54:41 +0000 (17:54 +0300)]
Initial commit for the documentation

6 years agoRename the dialog-based program to snf-mkimage
Nikos Skalkotos [Mon, 8 Oct 2012 10:56:08 +0000 (13:56 +0300)]
Rename the dialog-based program to snf-mkimage

Also add a basic readme file.

6 years agoFix missing imports introduced in 023e1217b32385ba
Nikos Skalkotos [Wed, 3 Oct 2012 14:11:22 +0000 (17:11 +0300)]
Fix missing imports introduced in 023e1217b32385ba

7 years agoCode cleanup and refactoring
Nikos Skalkotos [Tue, 4 Sep 2012 14:45:45 +0000 (17:45 +0300)]
Code cleanup and refactoring

Create a new dialog_menu module to host all the "expert mode" code.
Check the code with a new version of pep8

7 years agoFix various typos, add .gitignore file
Vangelis Koukis [Sat, 1 Sep 2012 15:29:47 +0000 (18:29 +0300)]
Fix various typos, add .gitignore file

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

7 years agoFix a bug in kamaki menu code
Nikos Skalkotos [Wed, 29 Aug 2012 14:13:10 +0000 (17:13 +0300)]
Fix a bug in kamaki menu code

Every time you tried to reupload an image, the dialog displayed the
pithos url instead of the image filename as initial value.

7 years agoFix fix_acpid syspep
Nikos Skalkotos [Wed, 29 Aug 2012 09:07:23 +0000 (12:07 +0300)]
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".

7 years agoFix cleanup_userdata sysprep
Nikos Skalkotos [Wed, 29 Aug 2012 08:54:26 +0000 (11:54 +0300)]
Fix cleanup_userdata sysprep

The function used to ignore directories when cleaning sensitive data

7 years agoFix a bug in the kamaki menu
Nikos Skalkotos [Fri, 24 Aug 2012 12:43:25 +0000 (15:43 +0300)]
Fix a bug in the kamaki menu

The account info was saved in the token field in .kamakirc

7 years agoIn wizard update the bg title after shrinking
Nikos Skalkotos [Fri, 24 Aug 2012 11:19:02 +0000 (14:19 +0300)]
In wizard update the bg title after shrinking

7 years agoMake the cow file size equal to the original media
Nikos Skalkotos [Fri, 24 Aug 2012 09:48:18 +0000 (12:48 +0300)]
Make the cow file size equal to the original media

The size of the cow file was hardcoded to 1G. This was buggy, because
for a big image, the resize operation could fill up the cow file and
fail.

7 years agoFix the wizard confirmation message
Nikos Skalkotos [Thu, 23 Aug 2012 15:44:54 +0000 (18:44 +0300)]
Fix the wizard confirmation message

7 years agoAdd support for overwriting yes/no button labels
Nikos Skalkotos [Thu, 23 Aug 2012 15:17:06 +0000 (18:17 +0300)]
Add support for overwriting yes/no button labels

Fix some typos and overwrite the yes/no labels of the wizard/expert
mode yesno dialog

7 years agoRename CombinedOutput to CompositeOutput
Nikos Skalkotos [Thu, 23 Aug 2012 09:04:09 +0000 (12:04 +0300)]
Rename CombinedOutput to CompositeOutput

Also move it to a separate module.

7 years agoAdd logging service in snf-image-creator-dialog
Nikos Skalkotos [Wed, 22 Aug 2012 10:37:49 +0000 (13:37 +0300)]
Add logging service in snf-image-creator-dialog

Logging can be enabled using the -l input option

7 years agoFix minor pep8 error
Nikos Skalkotos [Wed, 22 Aug 2012 09:18:37 +0000 (12:18 +0300)]
Fix minor pep8 error

7 years agoWhen in wizard mode, allow local image dumping
Nikos Skalkotos [Tue, 21 Aug 2012 10:38:54 +0000 (13:38 +0300)]
When in wizard mode, allow local image dumping

After the image has been uploaded to pithos and registered to cyclades,
prompt the user about saving the uploaded image locally.

7 years agoImplement a WizardExit exception in dialog_wizard
Nikos Skalkotos [Mon, 20 Aug 2012 10:06:59 +0000 (13:06 +0300)]
Implement a WizardExit exception in dialog_wizard

This exception can be used by the WizardPage instances to exit the
wizard.

7 years agoUse the description field inputed in the wizard
Nikos Skalkotos [Wed, 8 Aug 2012 13:34:52 +0000 (16:34 +0300)]
Use the description field inputed in the wizard

Make the ImageDescription field of the dialog wizard overwrite the
DESCRIPTION image property.

7 years agoAdd a new clear method in the Output class
Nikos Skalkotos [Wed, 8 Aug 2012 13:13:57 +0000 (16:13 +0300)]
Add a new clear method in the Output class

In the cli output classes this method will clear terminal screen if
the standard output is a terminal.

7 years agoDo not allow empty USERS metadata fields
Nikos Skalkotos [Wed, 8 Aug 2012 12:40:27 +0000 (15:40 +0300)]
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.

7 years agoRemove the image size from the image metadata
Nikos Skalkotos [Wed, 8 Aug 2012 12:11:24 +0000 (15:11 +0300)]
Remove the image size from the image metadata

7 years agoMake the dialog wizard workable
Nikos Skalkotos [Wed, 8 Aug 2012 08:43:20 +0000 (11:43 +0300)]
Make the dialog wizard workable

A user can now create and upload an image using the wizard

7 years agoRemove an unused import in main.py
Nikos Skalkotos [Wed, 8 Aug 2012 08:22:37 +0000 (11:22 +0300)]
Remove an unused import in main.py

7 years agoAdd all wizard dialog boxes.
Nikos Skalkotos [Tue, 31 Jul 2012 15:01:58 +0000 (18:01 +0300)]
Add all wizard dialog boxes.

The system does not perform anything yet when in wizard mode.

7 years agoChange kamaki account & token retrieval interface
Nikos Skalkotos [Fri, 27 Jul 2012 17:17:02 +0000 (20:17 +0300)]
Change kamaki account & token retrieval interface

7 years agoMove wizard code out of dialog_main.py
Nikos Skalkotos [Thu, 26 Jul 2012 16:00:40 +0000 (19:00 +0300)]
Move wizard code out of dialog_main.py

Create the new python module to host the aforementioned code.

7 years agoRead ~okeanos account/token from kamaki
Nikos Skalkotos [Thu, 26 Jul 2012 15:52:01 +0000 (18:52 +0300)]
Read ~okeanos account/token from kamaki

If present in the kamaki configuration file, the user will read
the ~okeanos credentials using the kamaki config interface.
Whenever the user changes the ~okeanos credentians, the changes are
pushed back to kamaki.

7 years agoAdd new wizard mode in snf-image-creator-dialog
Nikos Skalkotos [Tue, 24 Jul 2012 14:12:36 +0000 (17:12 +0300)]
Add new wizard mode in snf-image-creator-dialog

Not fully implemented yet

7 years agoFix minor typos
Nikos Skalkotos [Thu, 28 Jun 2012 10:50:33 +0000 (13:50 +0300)]
Fix minor typos

7 years agoFix pep8 errors
Nikos Skalkotos [Wed, 27 Jun 2012 22:20:19 +0000 (01:20 +0300)]
Fix pep8 errors

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

7 years agoPopulate image properties with task_metadata
Nikos Skalkotos [Wed, 27 Jun 2012 15:03:06 +0000 (18:03 +0300)]
Populate image properties with task_metadata

Before extracting an image or registring it with cyclades, the image
properties are populated with metadata concerning excluded deployment
tasks.

7 years agoLeave 2048 sectors space at the end when shrinking
Nikos Skalkotos [Wed, 27 Jun 2012 14:42:17 +0000 (17:42 +0300)]
Leave 2048 sectors space at the end when shrinking

Most partition manipulation programs leave 2048 sector empty space
after the last partition.

7 years agoFix a bug in _get_passworded_users method in Unix
Nikos Skalkotos [Wed, 27 Jun 2012 09:59:18 +0000 (12:59 +0300)]
Fix a bug in _get_passworded_users method in Unix

The method used a wrong warning output function

7 years agoAdd image properties help file
Nikos Skalkotos [Tue, 26 Jun 2012 13:42:04 +0000 (16:42 +0300)]
Add image properties help file

7 years agoFix error message for non supported media source
Nikos Skalkotos [Tue, 26 Jun 2012 13:35:37 +0000 (16:35 +0300)]
Fix error message for non supported media source

7 years agoFix pep8 errors
Nikos Skalkotos [Mon, 25 Jun 2012 21:29:11 +0000 (00:29 +0300)]
Fix pep8 errors

7 years agoFix minor typos in dialog_main.py
Nikos Skalkotos [Mon, 25 Jun 2012 13:21:39 +0000 (16:21 +0300)]
Fix minor typos in dialog_main.py

7 years agoFix a warning message in linux fix_acpid sysprep
Nikos Skalkotos [Mon, 25 Jun 2012 13:04:07 +0000 (16:04 +0300)]
Fix a warning message in linux fix_acpid sysprep

7 years agoUse vfs_uuid instead of blkid to compute uuid
Nikos Skalkotos [Mon, 25 Jun 2012 11:39:09 +0000 (14:39 +0300)]
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.

7 years agoMonitor metadata changes during shrink and sysprep
Nikos Skalkotos [Mon, 25 Jun 2012 09:57:19 +0000 (12:57 +0300)]
Monitor metadata changes during shrink and sysprep

Inform the user about metadata changes performed during syspreps
execution or image shrinking.

7 years agoPopulate Shrink menu entry
Nikos Skalkotos [Fri, 22 Jun 2012 15:51:59 +0000 (18:51 +0300)]
Populate Shrink menu entry

Also fix various issues. snf-image-creator-dialog is almost ready.
Some `Help' entries are missing.

7 years agoPopulate Sysprep menu entry
Nikos Skalkotos [Thu, 21 Jun 2012 16:20:05 +0000 (19:20 +0300)]
Populate Sysprep menu entry

Also create a new output class (InfoBoxOutput) to be used when
performing syspreps

7 years agoAdd get_sysprep_by_name method in os_type classes
Nikos Skalkotos [Thu, 21 Jun 2012 15:10:22 +0000 (18:10 +0300)]
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

7 years agoFix a bug introduced in 2e50092b2437913561a37c646e
Nikos Skalkotos [Wed, 20 Jun 2012 23:13:59 +0000 (02:13 +0300)]
Fix a bug introduced in 2e50092b2437913561a37c646e

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

7 years agoMerge Deploy and Customize menu entries
Nikos Skalkotos [Wed, 20 Jun 2012 16:10:26 +0000 (19:10 +0300)]
Merge Deploy and Customize menu entries

Populate Sysprep entry in "Image Customization Menu". Not fully
working.

7 years agoIn linux.py make sysprep names for descriptive
Nikos Skalkotos [Wed, 20 Jun 2012 15:30:55 +0000 (18:30 +0300)]
In linux.py make sysprep names for descriptive

7 years agoAdd sysprep_info method in os_type classes
Nikos Skalkotos [Wed, 20 Jun 2012 13:28:52 +0000 (16:28 +0300)]
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.

7 years agoMake os_type list_sysprep method return 1 list
Nikos Skalkotos [Wed, 20 Jun 2012 12:17:01 +0000 (15:17 +0300)]
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.

7 years agoAdd help subpackage
Nikos Skalkotos [Tue, 19 Jun 2012 14:54:51 +0000 (17:54 +0300)]
Add help subpackage

This dir will host help files used by snf-image-create-dialog

7 years agoPopulate `Deploy' dialog menu entry
Nikos Skalkotos [Mon, 18 Jun 2012 14:30:58 +0000 (17:30 +0300)]
Populate `Deploy' dialog menu entry

Image properties manipulation works fine.

7 years agoFurther development on snf-image-creator-dialog
Nikos Skalkotos [Fri, 15 Jun 2012 16:26:32 +0000 (19:26 +0300)]
Further development on snf-image-creator-dialog

Extract and Register menu entries work fine.

7 years agoIn kamaki.register convert all metadata to strings
Nikos Skalkotos [Fri, 15 Jun 2012 13:46:59 +0000 (16:46 +0300)]
In kamaki.register convert all metadata to strings

Otherwise the registration may fail.

7 years agoOpen snapshot in binary mode before uploading
Nikos Skalkotos [Fri, 15 Jun 2012 09:03:50 +0000 (12:03 +0300)]
Open snapshot in binary mode before uploading

7 years agoIn some circumstances mount the image readonly
Nikos Skalkotos [Fri, 15 Jun 2012 08:55:35 +0000 (11:55 +0300)]
In some circumstances mount the image readonly

If no customization is to be applied the image should be mounted
readonly.