From 46f659a01902aef733a4996cb6c8d0ac568c3375 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 4 Jul 2010 20:44:52 +0200 Subject: [PATCH] [examples] add basic openvz template .spec file examples --- .../specs/sabayon/core-openvz-template.common | 86 +++++++++++++++++++ .../sabayon-amd64-core-openvz-template.spec | 10 +++ .../sabayon-x86-core-openvz-template.spec | 10 +++ 3 files changed, 106 insertions(+) create mode 100644 examples/specs/sabayon/core-openvz-template.common create mode 100644 examples/specs/sabayon/sabayon-amd64-core-openvz-template.spec create mode 100644 examples/specs/sabayon/sabayon-x86-core-openvz-template.spec diff --git a/examples/specs/sabayon/core-openvz-template.common b/examples/specs/sabayon/core-openvz-template.common new file mode 100644 index 0000000..518dca2 --- /dev/null +++ b/examples/specs/sabayon/core-openvz-template.common @@ -0,0 +1,86 @@ +# Define an alternative execution strategy, in this case, the value must be +execution_strategy: iso_to_tar + +# Error script command, executed when something went wrong and molecule has +# to terminate the execution +# environment variables exported: +# - CHROOT_DIR: path to chroot directory, if any +# - CDROOT_DIR: path to livecd root directory, if any +# - SOURCE_CHROOT_DIR: path from where chroot is copied for final handling +# error_script: /path/to/script/to/be/executed/outside/after + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and before inner_chroot_script) +# outer_chroot_script: /path/to/script/to/be/executed/outside + +# Inner chroot script command, to be executed inside destination chroot before packing it +# - kmerge.sh - setup kernel bins +# inner_chroot_script: /sabayon/scripts/inner_chroot_script.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 + +# Pre-ISO building script. Hook called before making the iso image. +# environment variables exported: +# SOURCE_CHROOT_DIR: path pointing to source chroot directory +# CHROOT_DIR: path pointing to destination chroot directory (chroot being worked +# on) +# CDROOT_DIR: path pointing to CD/DVD root directory (ISO filesystem root) +# pre_iso_script: /sabayon/scripts/cdroot.py + +# Post-ISO building script. Hook called after having made the iso image and md5. +# environment variables exported: +# ISO_PATH: path to newly created ISO image file +# ISO_CHECKSUM_PATH: path to newly created ISO image checksum file +# post_iso_script: /sabayon/scripts/post_iso_script.sh + +# Destination directory for the ISO image path (MANDATORY) +destination_tar_directory: /sabayon/iso + +# Compression method (default is: gz). Supported compression methods: gz, bz2 +# compression_method: gz + +# Specify an alternative tar file name (tar file name will be automatically +# produced otherwise) +# tar_name: + +# Alternative ISO file mount command (default is: mount -o loop -t iso9660) +# iso_mounter: + +# Alternative ISO umounter command (default is: umount) +# iso_umounter: + +# Alternative squashfs file mount command (default is: mount -o loop -t squashfs) +# squash_mounter: + +# Alternative ISO squashfs umount command (default is: umount) +# squash_umounter: + +# Merge directory with destination LiveCD root (before tarring everything up) +# merge_livecd_root: /put/more/files/onto/CD/root + +# List of packages that would be removed from chrooted system (comma separated) +# packages_to_remove: + +# Custom shell call to packages removal (default is: equo remove) +# custom_packages_remove_cmd: + +# List of packages that would be added from chrooted system (comma separated) +# packages_to_add: + +# Custom shell call to packages add (default is: equo install) +# custom_packages_add_cmd: + +# Custom command for updating repositories (default is: equo update) +# repositories_update_cmd: + +# Determine whether repositories update should be run (if packages_to_add is set) +# (default is: no), values are: yes, no. +# execute_repositories_update: no + +# Directories to remove completely (comma separated) +# paths_to_remove: + +# Directories to empty (comma separated) +# paths_to_empty: diff --git a/examples/specs/sabayon/sabayon-amd64-core-openvz-template.spec b/examples/specs/sabayon/sabayon-amd64-core-openvz-template.spec new file mode 100644 index 0000000..6fad4eb --- /dev/null +++ b/examples/specs/sabayon/sabayon-amd64-core-openvz-template.spec @@ -0,0 +1,10 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/core-openvz-template.common + +# pre chroot command, example, for 32bit chroots on 64bit system, you always +# have to append "linux32" this is useful for inner_chroot_script +# prechroot: + +# Path to source ISO file (MANDATORY) +source_iso: /sabayon/iso/Sabayon_Linux_CoreCD_DAILY_amd64.iso + diff --git a/examples/specs/sabayon/sabayon-x86-core-openvz-template.spec b/examples/specs/sabayon/sabayon-x86-core-openvz-template.spec new file mode 100644 index 0000000..fb58c7a --- /dev/null +++ b/examples/specs/sabayon/sabayon-x86-core-openvz-template.spec @@ -0,0 +1,10 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/core-openvz-template.common + +# pre chroot command, example, for 32bit chroots on 64bit system, you always +# have to append "linux32" this is useful for inner_chroot_script +prechroot: linux32 + +# Path to source ISO file (MANDATORY) +source_iso: /sabayon/iso/Sabayon_Linux_CoreCD_DAILY_x86.iso +