[molecule.specs.plugins.tar_plugin] add inner_chroot_script_after support

This commit is contained in:
Fabio Erculiani
2010-07-21 01:53:01 +02:00
parent 6be039132f
commit 9549efa896
3 changed files with 14 additions and 0 deletions
@@ -0,0 +1,6 @@
#!/bin/bash
/usr/sbin/env-update && source /etc/profile
# Generate list of installed packages
equo query list installed -qv > /etc/sabayon-pkglist
@@ -17,6 +17,10 @@ execution_strategy: iso_to_tar
# - kmerge.sh - setup kernel bins
# inner_chroot_script: /sabayon/scripts/openvz_inner_chroot_script.sh
# Inner chroot script command, to be executed inside destination chroot after
# packages installation and removal
inner_chroot_script_after: /sabayon/scripts/tar_generic_inner_chroot_script_after.sh
# Outer chroot script command, to be executed outside destination chroot before
# before entering it (and AFTER inner_chroot_script)
# outer_chroot_script_after: /path/to/script/to/be/executed/outside/after
+4
View File
@@ -170,6 +170,10 @@ class IsoToTarSpec(GenericSpec):
'cb': self.valid_path_string_first_list_item,
've': self.ve_string_splitter,
},
'inner_chroot_script_after': {
'cb': self.valid_path_string_first_list_item,
've': self.ve_string_splitter,
},
'outer_chroot_script_after': {
'cb': self.valid_exec_first_list_item,
've': self.ve_string_splitter,