[molecules] add post_iso_script hook

This commit is contained in:
Fabio Erculiani 2011-08-15 09:43:23 +02:00
parent f3e0beeadc
commit d8a80c98f4
13 changed files with 58 additions and 0 deletions

View File

@ -36,6 +36,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/3rdparty/mcs_pre_iso_script.sh
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -35,6 +35,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/generic_pre_iso_script.sh CoreCDX
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -35,6 +35,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/generic_pre_iso_script.sh E17
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -39,6 +39,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat -allow-l
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/generic_pre_iso_script.sh "Gaming Edition"
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -35,6 +35,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/generic_pre_iso_script.sh GNOME
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -35,6 +35,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/generic_pre_iso_script.sh KDE
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -35,6 +35,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/generic_pre_iso_script.sh LXDE
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -55,6 +55,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
# pre_iso_script: /sabayon/scripts/cdroot.py
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -55,6 +55,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
# pre_iso_script: /sabayon/scripts/cdroot.py
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -35,6 +35,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/generic_pre_iso_script.sh ServerBase
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -32,6 +32,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/cdroot.py
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path
destination_iso_directory: /sabayon/iso

View File

@ -35,6 +35,9 @@ extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat
# Pre-ISO building script. Hook to be able to copy kernel images in place, for example
pre_iso_script: /sabayon/scripts/generic_pre_iso_script.sh XFCE
# Post-ISO building script, called after ISO image generation.
post_iso_script: /sabayon/scripts/generic_post_iso_script.sh
# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /sabayon/iso

View File

@ -0,0 +1,22 @@
#!/bin/bash
# Update ISO image in order to make it USB bootable
# out of the box
#
# Available env vars:
# ISO_PATH = path to generated ISO
# ISO_CHECKSUM_PATH = path to generated md5 for ISO
#
# This script requires isohybrid (which comes from syslinux package)
/usr/sbin/env-update && source /etc/profile
echo
echo "Spawning isohybrid for:"
echo "ISO_PATH = ${ISO_PATH}"
echo "ISO_CHECKSUM_PATH = ${ISO_CHECKSUM_PATH}"
echo
isohybrid "${ISO_PATH}" || exit 1
md5sum "${ISO_PATH}" > "${ISO_CHECKSUM_PATH}"
exit ${?}