55 Commits

Author SHA1 Message Date
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
Fabio Erculiani b1a46ec852 [molecule.specs.remaster] fix custom_packages_add_cmd and custom_packages_remove_cmd support, thanks to Brian Tomlinson for reporting 2009-12-18 10:25:30 +01:00
Fabio Erculiani 64105dc642 [molecule.specs.plugin.remaster] add inner_chroot_script_after hook, to be executed after packages installation and removal 2009-12-14 10:45:50 +01:00
Fabio Erculiani 400cf1d049 [molecule] implement ISO to TAR handler 2009-11-21 23:44:46 +01:00
Fabio Erculiani 8ba46f7635 [molecule] fix mkisofs title argument 2009-10-27 21:09:26 +01:00
Fabio Erculiani 59f3b9af93 [molecule] improve ability to reimplement Handlers, add setup() method, fixup code accordingly 2009-10-27 16:33:34 +01:00
Fabio Erculiani c7f7d09ba0 [molecule] add support for outer_chroot_script_after (to be executed after inner chroot script) 2009-10-27 16:10:49 +01:00
Fabio Erculiani 12a1d83ac9 [molecule] remaster plugin: do not remove/empty paths before hooks, always kill tmp dir 2009-10-27 10:57:58 +01:00
Fabio Erculiani e6f8062c2a [molecule] remaster plugin: run repo update hook before everything 2009-10-27 10:35:45 +01:00