[molecules] add post_iso_script hook
This commit is contained in:
parent
f3e0beeadc
commit
d8a80c98f4
3
molecules/3rdparty/mcs.common
vendored
3
molecules/3rdparty/mcs.common
vendored
@ -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 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
|
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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 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
|
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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 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
|
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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 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"
|
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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 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
|
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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 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
|
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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 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
|
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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 building script. Hook to be able to copy kernel images in place, for example
|
||||||
# pre_iso_script: /sabayon/scripts/cdroot.py
|
# 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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 building script. Hook to be able to copy kernel images in place, for example
|
||||||
# pre_iso_script: /sabayon/scripts/cdroot.py
|
# 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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 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
|
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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 building script. Hook to be able to copy kernel images in place, for example
|
||||||
pre_iso_script: /sabayon/scripts/cdroot.py
|
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 directory for the ISO image path
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
@ -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 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
|
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 directory for the ISO image path (MANDATORY)
|
||||||
destination_iso_directory: /sabayon/iso
|
destination_iso_directory: /sabayon/iso
|
||||||
|
|
||||||
|
22
scripts/generic_post_iso_script.sh
Executable file
22
scripts/generic_post_iso_script.sh
Executable 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 ${?}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user