Commit Graph

63 Commits

Author SHA1 Message Date
Fabio Erculiani 4e79284e9c [specs/remaster] add support for extra_mksquashfs_parameters (was not exposed) 2012-09-11 15:57:46 +02:00
Fabio Erculiani 4034acf6a3 [molecule/builtin] improve rsync usage in execution_strategy="livecd" code 2012-09-05 13:53:43 +02:00
Fabio Erculiani fa7de448d9 [molecule] mmc_plugin: fix syntax 2012-01-27 23:35:14 +01:00
Fabio Erculiani b4eb229388 [molecule] mmc_plugin: add support for packages_to_add and packages_to_remove 2012-01-27 23:23:00 +01:00
Fabio Erculiani 4de8a7c8e2 [plugins/mmc] export DESTINATION_IMAGE_DIR and IMAGE_NAME 2011-12-29 17:25:23 +01:00
Fabio Erculiani e6a5c888f8 [plugins/mmc] always export CHROOT_DIR when it makes sense 2011-12-29 17:11:24 +01:00
Fabio Erculiani d3bfcead18 [specs/mmc] add source chroot script hooks support 2011-12-29 08:36:46 +01:00
Fabio Erculiani 42a6674db5 [plugins/mmc] add MMC image generator plugin 2011-12-28 17:26:57 +01:00
Fabio Erculiani bba60f30c2 [molecule] rewrite molecule.utils.exec_cmd() to not use shell=True
The following changes were required code-wide:
- use shlex.split() to split commands read from spec files
- use glob.glob() where required
- write command splitter function and make use of it instead of
  simple string splitter
2011-09-04 11:52:02 +02:00
Fabio Erculiani 91cbe7bd6f [molecule.specs] always make sure to kill processes running inside chroots if failing 2011-07-21 13:56:03 +02:00
Fabio Erculiani 50f38369e9 [molecule] image_plugin: fix chroot copy to mounted image file 2011-07-20 23:53:39 +02:00
Fabio Erculiani 426f264213 [molecule*] beautify output, make molecule.settings contain only utf strings 2010-12-18 16:07:05 +01:00
Fabio Erculiani 9999f2b0f0 [molecule.specs.plugins] handle improper usage of merge_livecd_root and report to user 2010-12-10 13:56:23 +01:00
Fabio Erculiani df9e0af193 [molecule] add support for MOLECULE_TMPDIR environment variable (defaulting to /var/tmp), so that user can override it 2010-11-11 19:18:58 +01:00
Fabio Erculiani a7e14b230f [molecule.specs.plugins] also parse execution_strategy, avoid it getting pulled in in other parameters 2010-10-15 12:27:51 +02:00
Fabio Erculiani 44486776a5 [molecule.specs.plugins] TarHandler: always cleanup chroot temp directory 2010-08-26 21:24:00 +02:00
Fabio Erculiani 439afef721 [molecule.specs.plugins.image_plugin] improve loop device removal logic 2010-08-11 11:23:43 +02:00
Fabio Erculiani 59f241dcaa [molecule.specs.plugins] image_plugin: save one function call by calling os.urandom() directly 2010-08-08 23:50:02 +02:00
Fabio Erculiani 3e918c703c [molecule.specs.plugins] introduce iso_to_image plugin.
This plugin allows to build filesystem images (user can define the
filesystem type) off an ISO image.
2010-08-08 23:41:57 +02:00
Fabio Erculiani 91242f3744 [molecule.specs.plugins.remaster] warn if something in IsoUnpackHandler.kill() fails 2010-08-08 23:40:00 +02:00
Fabio Erculiani dfb187fd82 [molecule.specs.plugins] use molecule.utils.mkdtemp() 2010-08-08 18:36:46 +02:00
Fabio Erculiani baf978dac3 [molecule.specs] make possible to subclass IsoUnpackerHandler easily 2010-08-08 18:32:50 +02:00
Fabio Erculiani 8a84fb62d4 [molecule.specs] improve hooks execution reliability, do not taint application environment with hooks specific stuff 2010-08-08 16:11:44 +02:00
Fabio Erculiani de15e64288 [molecule.specs.plugins] properly use molecule.utils.exec_chroot_cmd() 2010-08-08 15:45:28 +02:00
Fabio Erculiani 1ceb5b7be9 [molecule.plugins] safely using mkstemp() 2010-08-08 15:21:02 +02:00
Fabio Erculiani 87c475aadd [molecule.specs.plugins] always return int from GenericExecutionStep.setup() 2010-08-08 15:09:12 +02:00
Fabio Erculiani 7fab6a3956 [molecule.specs.plugins.tar_plugin] add "pre_tar_script" and "post_tar_script" parameters support (see example) 2010-07-23 11:11:56 +02:00
Fabio Erculiani d5739d7f61 [molecule.specs.builtin_plugin] trivial comment update 2010-07-23 11:11:37 +02:00
Fabio Erculiani 39bbd73d32 [molecule.specs.plugins] BuiltinHandlerMixin._exec_inner_script: rework in-chroot exec files handling 2010-07-23 10:41:03 +02:00
Fabio Erculiani c484bf43b6 [molecule.specs.plugins.tar_plugin] generate .md5 for created tar file 2010-07-21 01:55:46 +02:00
Fabio Erculiani 9549efa896 [molecule.specs.plugins.tar_plugin] add inner_chroot_script_after support 2010-07-21 01:53:01 +02:00
Fabio Erculiani e3cffbb10e [molecule.specs.plugins.tar_plugin] make "tar_name" parameter working, remove unused "merge_livecd_root" 2010-07-15 16:50:28 +02:00
Fabio Erculiani 3900a1ef18 [molecule.plugins] in remaster_plugin, tar_plugin add support for release_version, release_desc, release_string, release_file metadata 2010-07-12 09:51:15 +02:00
Fabio Erculiani 7e8f080ec5 [molecule] improve Python 3.x support 2010-06-29 10:37:28 +02:00
Fabio Erculiani 0e7d9d67b4 Revert "[molecule] builtin_plugin: use shlex when calling mkisofs"
This reverts commit 63515f0f52.
2010-06-17 18:56:04 +02:00
Fabio Erculiani d7ca87485f Revert "[molecule.specs.plugins] builtin_plugin: fix shlex usage"
This reverts commit 334b64f8b2.
2010-06-17 18:55:54 +02:00
Fabio Erculiani 334b64f8b2 [molecule.specs.plugins] builtin_plugin: fix shlex usage 2010-06-17 18:51:47 +02:00
Fabio Erculiani 674506d0da [molecule.plugins] set ISO_PATH and ISO_CHECKSUM_PATH env vars before calling pre_iso_script 2010-06-17 18:18:23 +02:00
Fabio Erculiani 4aad1c784b [molecule] add post_iso_script hook support 2010-06-05 12:04:23 +02:00
Fabio Erculiani 63515f0f52 [molecule] builtin_plugin: use shlex when calling mkisofs 2010-06-03 20:42:44 +02:00
Fabio Erculiani 49dc2f1d3f [molecule] remaster_plugin: fix directory leaking 2010-05-24 20:26:23 +02:00
Fabio Erculiani e292ac6de5 [molecule] implement real Molecule Plugin Factory and use it 2010-05-16 17:33:04 +02:00
Fabio Erculiani 356bb0a6dc [molecule.output] port new code from Entropy (entropy.output) 2010-05-15 22:11:13 +02:00
Fabio Erculiani 189a84b960 [molecule.specs.remaster] fix support for destination_iso_image_name, thanks to Joost Ruis for reporting 2010-05-09 22:33:59 +02:00
Fabio Erculiani 996cdfe3c1 [molecule.specs.plugins.remaster] fix wrong arguments in _exec_inner_script call 2010-05-09 16:49:49 +02:00
Fabio Erculiani 9df4990c63 [molecule.specs.builtin] fix _run_error_script() 2010-04-22 22:12:42 +02:00
Fabio Erculiani 92b09e57f9 [molecule.specs.plugins.builtin] add support for inner_source_chroot_script
inner_source_chroot_script hook can be used to permanently modify
source chroots when using the standard execution strategy (chroot -> iso)
2010-04-18 18:42:39 +02:00
Fabio Erculiani 719d68de05 [molecule] implement arguments support for *_chroot_script_* statement.
This commit improves the support to script hooks, making possible to pass
arguments to them via .spec statements (outer_chroot_script, outer_chroot_script_after,
inner_chroot_script, inner_chroot_script_after, pre_iso_script)
2010-04-18 18:26:57 +02:00
Fabio Erculiani 7ad653b316 [molecule] fix extra_rsync_parameters option handling 2010-02-15 11:28:04 +01:00
Fabio Erculiani 40eedd53ae [molecule.specs] add error_script .spec file directive support 2009-12-21 21:55:48 +01:00