diff --git a/examples/Makefile b/examples/Makefile index 1b20c9a..0a872bf 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -11,7 +11,8 @@ clean: install: - mkdir -p $(DESTDIR)$(PREFIX)/share/molecule/examples - install -m 644 *.{sh,py,bz2} $(DESTDIR)$(PREFIX)/share/molecule/examples/ - mkdir -p $(DESTDIR)$(PREFIX)/share/molecule/examples/specs + mkdir -p $(DESTDIR)$(PREFIX)/share/molecule/examples/scripts + install -m 644 scripts/*.{sh,py,bz2} $(DESTDIR)$(PREFIX)/share/molecule/examples/scripts/ + mkdir -p $(DESTDIR)$(PREFIX)/share/molecule/examples/specs/sabayon install -m 644 specs/*.spec $(DESTDIR)$(PREFIX)/share/molecule/examples/specs/ + install -m 644 specs/sabayon/* $(DESTDIR)$(PREFIX)/share/molecule/examples/specs/sabayon/ diff --git a/examples/cdroot_pre_iso_script.py b/examples/cdroot_pre_iso_script.py deleted file mode 100755 index 9c4f24a..0000000 --- a/examples/cdroot_pre_iso_script.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python2 -import os, shutil -source_chroot_dir = os.getenv('SOURCE_CHROOT_DIR') -chroot_dir = os.getenv('CHROOT_DIR') -cdroot_dir = os.getenv('CDROOT_DIR') -boot_dir = os.path.join(chroot_dir,"boot") -cdroot_boot_dir = os.path.join(cdroot_dir,"boot") - -boot_kernel = [x for x in os.listdir(boot_dir) if x.startswith("kernel-")] -if boot_kernel: - boot_kernel = os.path.join(boot_dir,sorted(boot_kernel)[0]) - shutil.copy2(boot_kernel,os.path.join(cdroot_boot_dir,"sabayon")) - -boot_ramfs = [x for x in os.listdir(boot_dir) if x.startswith("initramfs-")] -if boot_ramfs: - boot_ramfs = os.path.join(boot_dir,sorted(boot_ramfs)[0]) - shutil.copy2(boot_ramfs,os.path.join(cdroot_boot_dir,"sabayon.igz")) - diff --git a/examples/inner_chroot_script.sh b/examples/inner_chroot_script.sh deleted file mode 100755 index bfcc2d5..0000000 --- a/examples/inner_chroot_script.sh +++ /dev/null @@ -1,97 +0,0 @@ -#!/bin/bash - -/usr/sbin/env-update -source /etc/profile - -# allow root logins to the livecd by default - -# turn bashlogin shells to actual login shells -sed -i 's:exec -l /bin/bash:exec -l /bin/bash -l:' /bin/bashlogin - -# setup sudoers -[ -e /etc/sudoers ] && sed -i '/NOPASSWD: ALL/ s/^# //' /etc/sudoers - -# setup opengl in /etc (if configured) -eselect opengl set xorg-x11 - -# touch /etc/asound.state -touch /etc/asound.state - -update-pciids -update-usbids - -# Prepare NVIDIA legacy drivers infrastructure - -if [ ! -d "/install-data/drivers" ]; then - mkdir -p /install-data/drivers -fi -myuname=$(uname -m) -mydir="x86" -if [ "$myuname" == "x86_64" ]; then - mydir="amd64" -fi - -rm -rf /var/lib/entropy/packages/${mydir}/5/x11-drivers* -ACCEPT_LICENSE="NVIDIA" equo install --fetch --nodeps =x11-drivers/nvidia-drivers-173* -ACCEPT_LICENSE="NVIDIA" equo install --fetch --nodeps =x11-drivers/nvidia-drivers-96* -# dropped since no X 1.5 support yet -# ACCEPT_LICENSE="NVIDIA" equo install --fetch --nodeps ~x11-drivers/nvidia-drivers-71.86.07 -mv /var/lib/entropy/packages/${mydir}/*/x11-drivers\:nvidia-drivers*.tbz2 /install-data/drivers/ - -# Add fusion icon to desktop -if [ -f "/usr/share/applications/fusion-icon.desktop" ]; then - cp /usr/share/applications/fusion-icon.desktop /etc/skel/Desktop/ -fi - -# EXPERIMENTAL, clean icon cache files -for file in `find /usr/share/icons -name "icon-theme.cache"`; do - rm $file -done - -echo -5 | etc-update -mount -t proc proc /proc -/lib/rc/bin/rc-depend -u - -echo "Vacuum cleaning client db" -equo database vacuum - -# Generate openrc cache -/etc/init.d/savecache start -/etc/init.d/savecache zap - -ldconfig -ldconfig -umount /proc - -equo deptest --pretend -emaint --fix world - -# remove anaconda .git -rm /opt/anaconda/.git -rf -rm /opt/anaconda/usr/share/anaconda/po/*.po -rf - - -# copy Portage config from sabayonlinux.org entropy repo to system -cp /var/lib/entropy/client/database/*/sabayonlinux.org/standard/*/*/package.mask /etc/portage/package.mask -cp /var/lib/entropy/client/database/*/sabayonlinux.org/standard/*/*/package.unmask /etc/portage/package.unmask -cp /var/lib/entropy/client/database/*/sabayonlinux.org/standard/*/*/package.use /etc/portage/package.use -cp /var/lib/entropy/client/database/*/sabayonlinux.org/standard/*/*/make.conf /etc/make.conf - -# Update sabayon overlay -layman -s sabayon - -# Optimize sabayon overlay -cd /usr/local/portage/layman/sabayon && git gc --aggressive \ - && git repack -a -d -f --depth=250 --window=250 \ - && git repack -ad && git prune - -# if Sabayon GNOME, drop qt-gui bins -gnome_panel=$(qlist -ICve gnome-base/gnome-panel) -if [ -n "${gnome_panel}" ]; then - find /usr/share/applications -name "*qt-gui*.desktop" | xargs rm -fi -# we don't want this on our ISO -rm -f /usr/share/applications/sandbox.desktop - -# Remove wicd from autostart -rm -f /usr/share/autostart/wicd-tray.desktop /etc/xdg/autostart/wicd-tray.desktop diff --git a/examples/outer_chroot_script.py b/examples/outer_chroot_script.py deleted file mode 100755 index 7b74cbc..0000000 --- a/examples/outer_chroot_script.py +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/python -import sys -sys.stdout.write("hello world") diff --git a/examples/remaster_inner_chroot_script.sh b/examples/remaster_inner_chroot_script.sh deleted file mode 100755 index 065892e..0000000 --- a/examples/remaster_inner_chroot_script.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -echo "REMASTER INNER CHROOT SCRIPT" diff --git a/examples/remaster_inner_chroot_script_after.sh b/examples/remaster_inner_chroot_script_after.sh deleted file mode 100755 index df8330c..0000000 --- a/examples/remaster_inner_chroot_script_after.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -echo "REMASTER INNER CHROOT SCRIPT AFTER" - -# touch /etc/asound.state -touch /etc/asound.state - -rm -f "/usr/share/applications/vmware-user.desktop" -rm -f "/etc/skel/Desktop/WorldOfGooDemo-world-of-goo-demo.desktop" - -echo -5 | etc-update -mount -t proc proc /proc - -eselect opengl set xorg-x11 - -env-update -/lib/rc/bin/rc-depend -u -equo database vacuum - -# Generate openrc cache -/etc/init.d/savecache start -/etc/init.d/savecache zap - -equo deptest --pretend -emaint --fix world - -ldconfig -umount /proc - -# EXPERIMENTAL, clean icon cache files -for file in `find /usr/share/icons -name "icon-theme.cache"`; do - rm $file -done diff --git a/examples/remaster_post.sh b/examples/remaster_post.sh deleted file mode 100755 index 8f6f26c..0000000 --- a/examples/remaster_post.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -PKGS_DIR="/sabayon/remaster/pkgs" -CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/packages" - -echo "Umounting packages over" -umount "${CHROOT_DIR}/dev" -umount "${CHROOT_PKGS_DIR}" || exit 1 diff --git a/examples/remaster_pre_iso_script.sh b/examples/remaster_pre_iso_script.sh deleted file mode 100755 index bdad5cd..0000000 --- a/examples/remaster_pre_iso_script.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# Setup Gaming Edition string in ISOLINUX stuff -sed -i 's/5.1/5.1 Gaming/g' "${CDROOT_DIR}/isolinux/isolinux.cfg" -sed -i 's/5.1/5.1 Gaming/g' "${CDROOT_DIR}/isolinux/isolinux.txt" diff --git a/examples/cdroot-overlay.tar.bz2 b/examples/scripts/cdroot-overlay.tar.bz2 similarity index 100% rename from examples/cdroot-overlay.tar.bz2 rename to examples/scripts/cdroot-overlay.tar.bz2 diff --git a/examples/scripts/cdroot.py b/examples/scripts/cdroot.py new file mode 100755 index 0000000..69a77b6 --- /dev/null +++ b/examples/scripts/cdroot.py @@ -0,0 +1,54 @@ +#!/usr/bin/python +import os, shutil, time +from datetime import datetime + +source_chroot_dir = os.getenv('SOURCE_CHROOT_DIR') +chroot_dir = os.getenv('CHROOT_DIR') +cdroot_dir = os.getenv('CDROOT_DIR') +boot_dir = os.path.join(chroot_dir, "boot") +cdroot_boot_dir = os.path.join(cdroot_dir, "boot") + +boot_kernel = [x for x in os.listdir(boot_dir) if x.startswith("kernel-")] +if boot_kernel: + boot_kernel = os.path.join(boot_dir, sorted(boot_kernel)[0]) + shutil.copy2(boot_kernel, os.path.join(cdroot_boot_dir, "sabayon")) + +boot_ramfs = [x for x in os.listdir(boot_dir) if x.startswith("initramfs-")] +if boot_ramfs: + boot_ramfs = os.path.join(boot_dir, sorted(boot_ramfs)[0]) + shutil.copy2(boot_ramfs, os.path.join(cdroot_boot_dir, "sabayon.igz")) + + +# Write build info +build_info_file = os.path.join(cdroot_dir, "BUILD_INFO") +build_date = str(datetime.fromtimestamp(time.time())) +bf = open(build_info_file, "w") +bf.write("Sabayon ISO image build information\n") +bf.write("Built on: %s\n" % (build_date,)) +bf.flush() +bf.close() + +def replace_version(path): + release_version = os.getenv("RELEASE_VERSION", "HEAD") + cf = open(path, "r") + new_cf = [] + for line in cf.readlines(): + line = line.replace("__VERSION__", release_version) + new_cf.append(line) + cf.close() + cf_new = open(path+".cdroot", "w") + cf_new.writelines(new_cf) + cf_new.flush() + cf_new.close() + os.rename(path+".cdroot", path) + +# Change isolinux.cfg and isolinux.txt to match version +isolinux_cfg = os.path.join(cdroot_dir, "isolinux/isolinux.cfg") +isolinux_txt = os.path.join(cdroot_dir, "isolinux/isolinux.txt") +replace_version(isolinux_cfg) +replace_version(isolinux_txt) + +# Copy pkglist over, if exists +sabayon_pkgs_file = os.path.join(chroot_dir, "etc/sabayon-pkglist") +if os.path.isfile(sabayon_pkgs_file): + shutil.copy2(sabayon_pkgs_file, os.path.join(cdroot_dir, "pkglist")) diff --git a/examples/scripts/corecdx_pre_iso_script.sh b/examples/scripts/corecdx_pre_iso_script.sh new file mode 100755 index 0000000..fd14704 --- /dev/null +++ b/examples/scripts/corecdx_pre_iso_script.sh @@ -0,0 +1,18 @@ +#!/bin/bash +ver=${RELEASE_VERSION} +[[ -z "${ver}" ]] && ver=${CUR_DATE} +[[ -z "${ver}" ]] && ver="5.3" + +sed -i "s/__VERSION__/${ver}/g" "${CDROOT_DIR}/isolinux/isolinux.cfg" +sed -i "s/gentoo=nox//g" "${CDROOT_DIR}/isolinux/isolinux.cfg" +sed -i "s/nox//g" "${CDROOT_DIR}/isolinux/isolinux.cfg" +sed -i "s/installer-text/installer-gui/g" "${CDROOT_DIR}/isolinux/isolinux.cfg" +sed -i "s/text-install/gui-install/g" "${CDROOT_DIR}/isolinux/isolinux.cfg" +# splashutils is stupid and gives black screen at the end of the boot if X is not there +# sed -i "s/splash=verbose/splash=silent/g" "${CDROOT_DIR}/isolinux/isolinux.cfg" +sed -i "s/CoreCD/CoreCDX/g" "${CDROOT_DIR}/isolinux/isolinux.cfg" + +sabayon_pkgs_file="${CHROOT_DIR}/etc/sabayon-pkglist" +if [ -f "${sabayon_pkgs_file}" ]; then + cp "${sabayon_pkgs_file}" "${CDROOT_DIR}/pkglist" +fi diff --git a/examples/scripts/generic_pre_iso_script.sh b/examples/scripts/generic_pre_iso_script.sh new file mode 100755 index 0000000..1813816 --- /dev/null +++ b/examples/scripts/generic_pre_iso_script.sh @@ -0,0 +1,14 @@ +#!/bin/bash +cp /sabayon/remaster/remaster_isolinux.cfg "${CDROOT_DIR}/isolinux/isolinux.cfg" +ver=${RELEASE_VERSION} +[[ -z "${ver}" ]] && ver=${CUR_DATE} +[[ -z "${ver}" ]] && ver="5.3" + +sed -i "s/__VERSION__/${ver}/g" "${CDROOT_DIR}/isolinux/isolinux.cfg" +sed -i "s/__FLAVOUR__/${1}/g" "${CDROOT_DIR}/isolinux/isolinux.cfg" + +sabayon_pkgs_file="${CHROOT_DIR}/etc/sabayon-pkglist" +if [ -f "${sabayon_pkgs_file}" ]; then + cp "${sabayon_pkgs_file}" "${CDROOT_DIR}/pkglist" +fi + diff --git a/examples/scripts/inner_chroot_script.sh b/examples/scripts/inner_chroot_script.sh new file mode 100755 index 0000000..1e547f2 --- /dev/null +++ b/examples/scripts/inner_chroot_script.sh @@ -0,0 +1,142 @@ +#!/bin/bash + +/usr/sbin/env-update +source /etc/profile + +for arg in $*; do + [[ "${arg}" = "spinbase" ]] && SPINBASE="1" +done + +# Setup locale to en_US +echo LANG=\"en_US.UTF-8\" > /etc/env.d/02locale +echo LANGUAGE=\"en_US.UTF-8\" >> /etc/env.d/02locale +echo LC_ALL=\"en_US.UTF-8\" >> /etc/env.d/02locale + +# remove SSH keys +rm -rf /etc/ssh/*_key* + +# allow root logins to the livecd by default + +# turn bashlogin shells to actual login shells +sed -i 's:exec -l /bin/bash:exec -l /bin/bash -l:' /bin/bashlogin + +# setup sudoers +[ -e /etc/sudoers ] && sed -i '/NOPASSWD: ALL/ s/^# //' /etc/sudoers + +# setup opengl in /etc (if configured) +[[ -z "${SPINBASE}" ]] && eselect opengl set xorg-x11 + +# touch /etc/asound.state +touch /etc/asound.state + +update-pciids +update-usbids + +if [ -z "${SPINBASE}" ]; then + # Prepare NVIDIA legacy drivers infrastructure + + if [ ! -d "/install-data/drivers" ]; then + mkdir -p /install-data/drivers + fi + myuname=$(uname -m) + mydir="x86" + if [ "$myuname" == "x86_64" ]; then + mydir="amd64" + fi + kernel_tag="#$(equo query installed -qv sys-kernel/linux-sabayon | sort | head -n 1 | cut -d"-" -f 4 | sed 's/ //g')-sabayon" + + rm -rf /var/lib/entropy/packages*/${mydir}/5/x11-drivers* + ACCEPT_LICENSE="NVIDIA" equo install --fetch --nodeps =x11-drivers/nvidia-drivers-173*$kernel_tag + ACCEPT_LICENSE="NVIDIA" equo install --fetch --nodeps =x11-drivers/nvidia-drivers-96*$kernel_tag + # testing xorg-server-1.5 support + # ACCEPT_LICENSE="NVIDIA" equo install --fetch --nodeps ~x11-drivers/nvidia-drivers-71.86.*$kernel_tag + mv /var/lib/entropy/packages-nonfree/${mydir}/*/x11-drivers\:nvidia-drivers*.tbz2 /install-data/drivers/ + + # Add fusion icon to desktop + if [ -f "/usr/share/applications/fusion-icon.desktop" ]; then + cp /usr/share/applications/fusion-icon.desktop /etc/skel/Desktop/ + fi +fi + +# EXPERIMENTAL, clean icon cache files +for file in `find /usr/share/icons -name "icon-theme.cache"`; do + rm $file +done + +echo -5 | etc-update +mount -t proc proc /proc +/lib/rc/bin/rc-depend -u + +echo "Vacuum cleaning client db" +equo rescue vacuum + +# Generate openrc cache +/etc/init.d/savecache start +/etc/init.d/savecache zap + +ldconfig +ldconfig +umount /proc + +equo deptest --pretend +emaint --fix world + +# remove anaconda .git +rm /opt/anaconda/.git -rf +rm /opt/anaconda/usr/share/anaconda/po/*.po -rf + + +# copy Portage config from sabayonlinux.org entropy repo to system +cp /var/lib/entropy/client/database/*/sabayonlinux.org/standard/*/*/package.mask /etc/portage/package.mask +cp /var/lib/entropy/client/database/*/sabayonlinux.org/standard/*/*/package.unmask /etc/portage/package.unmask +cp /var/lib/entropy/client/database/*/sabayonlinux.org/standard/*/*/package.use /etc/portage/package.use +[[ -z "${SPINBASE}" ]] && cp /var/lib/entropy/client/database/*/sabayonlinux.org/standard/*/*/make.conf /etc/make.conf + +# Update sabayon overlay +layman -s sabayon +if [ -z "${SPINBASE}" ]; then + layman -d sabayon + rm -rf /var/lib/layman/sabayon +fi + +# if Sabayon GNOME, drop qt-gui bins +gnome_panel=$(qlist -ICve gnome-base/gnome-panel) +if [ -n "${gnome_panel}" ]; then + find /usr/share/applications -name "*qt-gui*.desktop" | xargs rm +fi +# we don't want this on our ISO +rm -f /usr/share/applications/sandbox.desktop + +# Remove wicd from autostart +rm -f /usr/share/autostart/wicd-tray.desktop /etc/xdg/autostart/wicd-tray.desktop + +# Reset users' password +echo "sabayonuser:" | chpasswd +echo "root:" | chpasswd + +# protect /var/tmp +touch /var/tmp/.keep +touch /tmp/.keep +chmod 777 /var/tmp +chmod 777 /tmp + +# Looks like screen directories are missing +if [ ! -d "/var/run/screen" ]; then + mkdir /var/run/screen + chmod 775 /var/run/screen + chown root:utmp /var/run/screen +fi + +# Revert to blocked entropy repo URL +sed -i 's/pkgbuild.sabayon.org/pkg.sabayon.org/g' /etc/entropy/repositories.conf + +# Tweak user groups +usermod -a -G lpadmin sabayonuser + +# Regenerate Fluxbox menu +if [ -x "/usr/bin/fluxbox-generate_menu" ]; then + fluxbox-generate_menu -o /etc/skel/.fluxbox/menu +fi + +equo query list installed -qv > /etc/sabayon-pkglist +exit 0 diff --git a/examples/scripts/inner_source_chroot_update.sh b/examples/scripts/inner_source_chroot_update.sh new file mode 100755 index 0000000..36b0dd3 --- /dev/null +++ b/examples/scripts/inner_source_chroot_update.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +source /etc/profile +env-update +source /etc/profile + +layman -s sabayon + +# Setup environment vars +export ETP_NONINTERACTIVE=1 +if [ -d "/usr/portage/licenses" ]; then + export ACCEPT_LICENSE="$(ls /usr/portage/licenses -1 | xargs)" +fi + +export ETP_NOINTERACTIVE=1 +export FORCE_EAPI=2 +equo update || ( sleep 1200 && equo update ) || exit 1 +equo upgrade || exit 1 +echo "-5" | equo conf update +rm -rf /var/lib/entropy/packages* + +equo query list installed -qv > /etc/sabayon-pkglist diff --git a/examples/scripts/remaster_generic_inner_chroot_script_after.sh b/examples/scripts/remaster_generic_inner_chroot_script_after.sh new file mode 100755 index 0000000..9a9001c --- /dev/null +++ b/examples/scripts/remaster_generic_inner_chroot_script_after.sh @@ -0,0 +1,59 @@ +#!/bin/bash + +# Use gdm by default +sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="gdm"/g' /etc/conf.d/xdm + +# automatically start xdm +rc-update del xdm +rc-update add xdm boot +rc-update del hald +rc-update add hald default +rc-update del NetworkManager +rc-update add NetworkManager default + +echo -5 | equo conf update + +# remove stuff from Skel we don't have +rm /etc/skel/Desktop/WorldOfGooDemo-world-of-goo-demo.desktop +rm /etc/skel/Desktop/fusion-icon.desktop +rm /etc/skel/Desktop/xbmc.desktop + +if [ "$1" = "lxde" ]; then + # Fix ~/.dmrc to have it load LXDE + echo "[Desktop]" > /etc/skel/.dmrc + echo "Session=LXDE" >> /etc/skel/.dmrc +elif [ "$1" = "xfce" ]; then + # Fix ~/.dmrc to have it load XFCE + echo "[Desktop]" > /etc/skel/.dmrc + echo "Session=xfce" >> /etc/skel/.dmrc +elif [ "$1" = "fluxbox" ]; then + # Fix ~/.dmrc to have it load Fluxbox + echo "[Desktop]" > /etc/skel/.dmrc + echo "Session=fluxbox" >> /etc/skel/.dmrc +fi + +# Update package list +equo query list installed -qv > /etc/sabayon-pkglist + +# We installed feh and now use it to set a background! +echo "@feh --bg-scale /usr/share/backgrounds/sabayonlinux.png" >> /etc/xdg/lxsession/LXDE/autostart + +rm /var/lib/entropy/client/database/*/sabayonlinux.org -rf +equo rescue vacuum + +rm -rf /opt/anaconda* + +# Setup basic GTK theme for root user +if [ ! -f "/root/.gtkrc-2.0" ]; then + echo "include \"/usr/share/themes/Clearlooks/gtk-2.0/gtkrc\"" > /root/.gtkrc-2.0 +fi + +# Regenerate Fluxbox menu +if [ -x "/usr/bin/fluxbox-generate_menu" ]; then + fluxbox-generate_menu -o /etc/skel/.fluxbox/menu +fi + +layman -d sabayon +rm -rf /var/lib/layman/sabayon + +exit 0 diff --git a/examples/scripts/remaster_post.sh b/examples/scripts/remaster_post.sh new file mode 100755 index 0000000..e2e7c41 --- /dev/null +++ b/examples/scripts/remaster_post.sh @@ -0,0 +1,7 @@ +#!/bin/sh +PKGS_DIR="/sabayon/remaster/pkgs" +CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/packages" + +echo "Merging back packages" +cp "${CHROOT_PKGS_DIR}"/* "${PKGS_DIR}"/ -Ra +rm -rf "${CHROOT_PKGS_DIR}"{,-nonfree,-restricted}/* diff --git a/examples/remaster_pre.sh b/examples/scripts/remaster_pre.sh similarity index 71% rename from examples/remaster_pre.sh rename to examples/scripts/remaster_pre.sh index 70ff214..e22818b 100755 --- a/examples/remaster_pre.sh +++ b/examples/scripts/remaster_pre.sh @@ -6,5 +6,6 @@ CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/packages" [[ ! -d "${CHROOT_PKGS_DIR}" ]] && mkdir -p "${CHROOT_PKGS_DIR}" echo "Mounting packages over" -mount --bind "${PKGS_DIR}" "${CHROOT_PKGS_DIR}" || exit 1 -mount --bind "/dev" "${CHROOT_DIR}/dev" +rm -rf "${CHROOT_PKGS_DIR}"/* +cp ${PKGS_DIR}/* "${CHROOT_PKGS_DIR}"/ -Ra +exit 0 diff --git a/examples/specs/sabayon/corecdx.common b/examples/specs/sabayon/corecdx.common new file mode 100644 index 0000000..9603093 --- /dev/null +++ b/examples/specs/sabayon/corecdx.common @@ -0,0 +1,63 @@ +# Define an alternative execution strategy, in this case, the value must be +# "iso_remaster" +execution_strategy: iso_remaster + +# ISO Image title +iso_title: Sabayon CoreCDX + +# Release string +release_string: Sabayon Linux + +# File to write release string +release_file: /etc/sabayon-edition + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and before inner_chroot_script) +outer_chroot_script: /sabayon/scripts/remaster_pre.sh + +# Inner chroot script command, to be executed inside destination chroot after +# packages installation and removal +inner_chroot_script_after: /sabayon/scripts/remaster_generic_inner_chroot_script_after.sh fluxbox + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and AFTER inner_chroot_script) +outer_chroot_script_after: /sabayon/scripts/remaster_post.sh + +# Extra mkisofs parameters, perhaps something to include/use your bootloader +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/corecdx_pre_iso_script.sh + +# Destination directory for the ISO image path (MANDATORY) +destination_iso_directory: /sabayon/iso + +# sabayon-skel required to make anaconda autostart +# libgnomecanvas-python required by anaconda +# x11-drivers/xf86-video-virtualbox#2.6.33-sabayon, +# x11-libs/libXxf86misc required by xset + +packages_to_add: + @X, + @fluxbox, + x11-libs/libXxf86misc, + app-text/pastebunz, + app-misc/sabayon-skel, + app-misc/anaconda-runtime-gui, + gnome-base/gdm, + net-dialup/ppp, + x11-terms/xterm, + x11-drivers/xf86-input-virtualbox, + virtualbox-guest-additions, + x11-themes/hicolor-icon-theme, + dev-python/libgnomecanvas-python, + x11-apps/xhost, + x11-apps/setxkbmap, + x11-themes/gtk-engines, + sys-apps/gpu-detector + app-emulation/virtualbox-guest-additions, + x11-drivers/xf86-video-virtualbox + +# Determine whether repositories update should be run (if packages_to_add is set) +# (default is: no), values are: yes, no. +execute_repositories_update: yes diff --git a/examples/specs/sabayon/gnome+kde.common b/examples/specs/sabayon/gnome+kde.common new file mode 100644 index 0000000..2b661d4 --- /dev/null +++ b/examples/specs/sabayon/gnome+kde.common @@ -0,0 +1,128 @@ +# Execution strategy +execution_strategy: livecd + +# Release string +release_string: Sabayon Linux + +# Release file (inside chroot) +release_file: /etc/sabayon-edition + +# Destination chroot directory, where files are pushed to before creating the squashfs image +# NOTE: data will be stored inside an auto-generated subdir +destination_chroot: /sabayon + +# Merge directory with destination chroot +# merge_destination_chroot: + +# Extra mirror (r)sync parameters +extra_rsync_parameters: --one-file-system --exclude proc/* + +# Outer chroot script command, to be executed outside destination chroot before packing it +outer_chroot_script: /sabayon/scripts/remaster_pre.sh + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and AFTER inner_chroot_script) +outer_chroot_script_after: /sabayon/scripts/remaster_post.sh + +# 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 + +# Destination LiveCD root directory, where files are placed before getting mkisofs'ed +# NOTE: data will be stored inside an auto-generated subdir +destination_livecd_root: /sabayon + +# Merge directory with destination LiveCD root +merge_livecd_root: /sabayon/boot/standard + +# Extra mksquashfs parameters +# extra_mksquashfs_parameters: + +# Extra mkisofs parameters, perhaps something to include/use your bootloader +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 + +# Destination directory for the ISO image path +destination_iso_directory: /sabayon/iso + +# Directories to remove completely (comma separated) +paths_to_remove: + /var/lib/entropy/client/database/*/sabayonlinux.org, + /boot/grub/grub.conf, + /root/.subversion, + /lib/udev-state/devices.tar.bz2, + /var/log/scrollkeeper.log, /var/log/genkernel.log, + /var/log/emerge.log, /usr/tmp/portage/*, + /root/.bash_history, /home/sabayonuser/.bash_history, + /usr/share/slocate/slocate.db, + /root/test-results.txt, + /root/test.sh, + /usr/portage/distfiles/*, + /usr/portage/packages/*, + /root/.revdep*, + /install-data/games/*, + /var/lib/entropy/store/*, + /var/log/entropy/*, + /var/lib/entropy/caches/*, + /var/lib/entropy/smartapps/*/*, + /var/lib/entropy/smartapps/*/*, + /var/lib/entropy/tmp/*, + /var/lib/entropy/packages*/*, + /var/tmp/entropy/*, + /*.txt, + /usr/portage/a*, + /usr/portage/b*, + /usr/portage/c*, + /usr/portage/d*, + /usr/portage/e*, + /usr/portage/f*, + /usr/portage/g*, + /usr/portage/h*, + /usr/portage/i*, + /usr/portage/j*, + /usr/portage/k*, + /usr/portage/licenses, + /usr/portage/lxde*, + /usr/portage/m*, + /usr/portage/n*, + /usr/portage/o*, + /usr/portage/packages, + /usr/portage/pe*, + /usr/portage/q*, + /usr/portage/r*, + /usr/portage/s*, + /usr/portage/t*, + /usr/portage/u*, + /usr/portage/v*, + /usr/portage/w*, + /usr/portage/x*, + /usr/portage/y*, + /usr/portage/z*, + /etc/ssh/ssh_host_*, + /var/run/screen*, + /entropy, + /tmp/equoerror.txt, + /var/cache/man, + /var/lib/entropy/glsa/*, + /var/log/entropy/*.log, + /etc/mtab, + /boot/grub/grub.c*, + /tmp/.ICE-unix*, + /tmp/*.txt, + /tmp/.X*, + /var/tmp/*, + /boot/grub/device.map + +# Directories to empty (comma separated) +paths_to_empty: + /home/sabayonuser/.thumbnails/, + /root/.ccache, + /var/tmp/portage, + /var/tmp/ccache, + /var/tmp/portage-pkg, + /var/tmp/binpkgs, + /var/lib/entropy/portage, + /var/lib/entropy/logs, + /var/cache/genkernel diff --git a/examples/specs/sabayon/lxde.common b/examples/specs/sabayon/lxde.common new file mode 100644 index 0000000..d7cceb4 --- /dev/null +++ b/examples/specs/sabayon/lxde.common @@ -0,0 +1,64 @@ +# Define an alternative execution strategy, in this case, the value must be +# "iso_remaster" +execution_strategy: iso_remaster + +# ISO Image title +iso_title: Sabayon LXDE + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and before inner_chroot_script) +outer_chroot_script: /sabayon/scripts/remaster_pre.sh + +# Inner chroot script command, to be executed inside destination chroot after +# packages installation and removal +inner_chroot_script_after: /sabayon/scripts/remaster_generic_inner_chroot_script_after.sh lxde + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and AFTER inner_chroot_script) +outer_chroot_script_after: /sabayon/scripts/remaster_post.sh + +# Extra mkisofs parameters, perhaps something to include/use your bootloader +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 + +# Destination directory for the ISO image path (MANDATORY) +destination_iso_directory: /sabayon/iso + +# List of packages that would be removed from chrooted system (comma separated) +packages_to_remove: + www-client/lynx, + sys-boot/grub:0, + x11-libs/qt-qt3support, + app-text/poppler-qt4, + x11-libs/qt-gui + +# List of packages that would be added from chrooted system (comma separated) +packages_to_add: + @X, + @lxde, + app-emulation/virtualbox-guest-additions, + app-misc/anaconda-runtime-gui, + app-text/pastebunz, + gnome-extra/nm-applet, + xterm, + media-gfx/feh, + sys-apps/gpu-detector, + x11-drivers/xf86-video-virtualbox + +# 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: yes + +# 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-corecdx.spec b/examples/specs/sabayon/sabayon-amd64-corecdx.spec new file mode 100644 index 0000000..f9e467e --- /dev/null +++ b/examples/specs/sabayon/sabayon-amd64-corecdx.spec @@ -0,0 +1,10 @@ +# Use abs path, otherwise daily iso build won't work +%import /sabayon/molecules/corecdx.common + +release_desc: amd64 CoreCDX + +# Path to source ISO file (MANDATORY) +source_iso: /sabayon/iso/Sabayon_Linux_SpinBase_DAILY_amd64.iso + +# Destination ISO image name, call whatever you want.iso, not mandatory +destination_iso_image_name: Sabayon_Linux_CoreCDX_5.3_amd64.iso diff --git a/examples/specs/sabayon/sabayon-amd64-g.spec b/examples/specs/sabayon/sabayon-amd64-g.spec new file mode 100644 index 0000000..cc7c686 --- /dev/null +++ b/examples/specs/sabayon/sabayon-amd64-g.spec @@ -0,0 +1,20 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/gnome+kde.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: + +# Release Version +# Keep this here, otherwise daily iso images build won't work +release_version: 5.3 + +# Release Version string description +release_desc: amd64 G + +# Source chroot directory, where files are pulled from +source_chroot: /sabayon/sources/amd64_gnome-2009 + +# Destination ISO image name, call whatever you want.iso, not mandatory +# Keep this here, of course +destination_iso_image_name: Sabayon_Linux_5.3_amd64_G.iso diff --git a/examples/specs/sabayon/sabayon-amd64-k.spec b/examples/specs/sabayon/sabayon-amd64-k.spec new file mode 100644 index 0000000..7d300b4 --- /dev/null +++ b/examples/specs/sabayon/sabayon-amd64-k.spec @@ -0,0 +1,20 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/gnome+kde.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: + +# Release Version +# Keep this here, otherwise daily iso images build won't work +release_version: 5.3 + +# Release Version string description +release_desc: amd64 K + +# Source chroot directory, where files are pulled from +source_chroot: /sabayon/sources/amd64_kde-2009 + +# Destination ISO image name, call whatever you want.iso, not mandatory +# Keep this here, of course +destination_iso_image_name: Sabayon_Linux_5.3_amd64_K.iso diff --git a/examples/specs/sabayon/sabayon-amd64-lxde.spec b/examples/specs/sabayon/sabayon-amd64-lxde.spec new file mode 100644 index 0000000..ef7e051 --- /dev/null +++ b/examples/specs/sabayon/sabayon-amd64-lxde.spec @@ -0,0 +1,8 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/lxde.common + +# Path to source ISO file (MANDATORY) +source_iso: /sabayon/iso/Sabayon_Linux_SpinBase_DAILY_amd64.iso + +# Destination ISO image name, call whatever you want.iso, not mandatory +destination_iso_image_name: Sabayon_Linux_5.3_amd64_LXDE.iso diff --git a/examples/specs/sabayon/sabayon-amd64-spinbase.spec b/examples/specs/sabayon/sabayon-amd64-spinbase.spec new file mode 100644 index 0000000..895de95 --- /dev/null +++ b/examples/specs/sabayon/sabayon-amd64-spinbase.spec @@ -0,0 +1,16 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/spinbase.common + +# Release Version +# Keep this here, otherwise daily builds automagic won't work +release_version: 5.3 + +# Release Version string description +release_desc: amd64 SpinBase + +# Source chroot directory, where files are pulled from +source_chroot: /sabayon/sources/amd64_core-2010 + +# Destination ISO image name, call whatever you want.iso, not mandatory +# Keep this here and set, otherwise daily builds automagic won't work +destination_iso_image_name: Sabayon_Linux_SpinBase_5.3_amd64.iso diff --git a/examples/specs/sabayon/sabayon-amd64-xfce.spec b/examples/specs/sabayon/sabayon-amd64-xfce.spec new file mode 100644 index 0000000..746104d --- /dev/null +++ b/examples/specs/sabayon/sabayon-amd64-xfce.spec @@ -0,0 +1,8 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/xfce.common + +# Path to source ISO file (MANDATORY) +source_iso: /sabayon/iso/Sabayon_Linux_SpinBase_DAILY_amd64.iso + +# Destination ISO image name, call whatever you want.iso, not mandatory +destination_iso_image_name: Sabayon_Linux_5.3_amd64_XFCE.iso diff --git a/examples/specs/sabayon/sabayon-x86-corecdx.spec b/examples/specs/sabayon/sabayon-x86-corecdx.spec new file mode 100644 index 0000000..1b0d592 --- /dev/null +++ b/examples/specs/sabayon/sabayon-x86-corecdx.spec @@ -0,0 +1,14 @@ +# use abs path, otherwise daily iso build automagic won't work +%import /sabayon/molecules/corecdx.common + +release_desc: x86 CoreCDX + +# 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_SpinBase_DAILY_x86.iso + +# Destination ISO image name, call whatever you want.iso, not mandatory +destination_iso_image_name: Sabayon_Linux_CoreCDX_5.3_x86.iso diff --git a/examples/specs/sabayon/sabayon-x86-g.spec b/examples/specs/sabayon/sabayon-x86-g.spec new file mode 100644 index 0000000..fd46fbc --- /dev/null +++ b/examples/specs/sabayon/sabayon-x86-g.spec @@ -0,0 +1,20 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/gnome+kde.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 + +# Release Version +# Keep this here, otherwise daily iso images build won't work +release_version: 5.3 + +# Release Version string description +release_desc: x86 G + +# Source chroot directory, where files are pulled from +source_chroot: /sabayon/sources/x86_gnome-2009 + +# Destination ISO image name, call whatever you want.iso, not mandatory +# Keep this here, of course +destination_iso_image_name: Sabayon_Linux_5.3_x86_G.iso diff --git a/examples/specs/sabayon/sabayon-x86-k.spec b/examples/specs/sabayon/sabayon-x86-k.spec new file mode 100644 index 0000000..7e47f2a --- /dev/null +++ b/examples/specs/sabayon/sabayon-x86-k.spec @@ -0,0 +1,20 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/gnome+kde.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 + +# Release Version +# Keep this here, otherwise daily iso images build won't work +release_version: 5.3 + +# Release Version string description +release_desc: x86 K + +# Source chroot directory, where files are pulled from +source_chroot: /sabayon/sources/x86_kde-2009 + +# Destination ISO image name, call whatever you want.iso, not mandatory +# Keep this here, of course +destination_iso_image_name: Sabayon_Linux_5.3_x86_K.iso diff --git a/examples/specs/sabayon/sabayon-x86-lxde.spec b/examples/specs/sabayon/sabayon-x86-lxde.spec new file mode 100644 index 0000000..d85205d --- /dev/null +++ b/examples/specs/sabayon/sabayon-x86-lxde.spec @@ -0,0 +1,11 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/lxde.common + +# 32bit chroot +prechroot: linux32 + +# Path to source ISO file (MANDATORY) +source_iso: /sabayon/iso/Sabayon_Linux_SpinBase_DAILY_x86.iso + +# Destination ISO image name, call whatever you want.iso, not mandatory +destination_iso_image_name: Sabayon_Linux_5.3_x86_LXDE.iso diff --git a/examples/specs/sabayon/sabayon-x86-spinbase.spec b/examples/specs/sabayon/sabayon-x86-spinbase.spec new file mode 100644 index 0000000..67f97d1 --- /dev/null +++ b/examples/specs/sabayon/sabayon-x86-spinbase.spec @@ -0,0 +1,19 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/spinbase.common + +# 32bit build +prechroot: linux32 + +# Release Version +# Keep this here, otherwise daily builds automagic won't work +release_version: 5.3 + +# Release Version string description +release_desc: x86 SpinBase + +# Source chroot directory, where files are pulled from +source_chroot: /sabayon/sources/x86_core-2010 + +# Destination ISO image name, call whatever you want.iso, not mandatory +# Keep this here and set, otherwise daily builds automagic won't work +destination_iso_image_name: Sabayon_Linux_SpinBase_5.3_x86.iso diff --git a/examples/specs/sabayon/sabayon-x86-xfce.spec b/examples/specs/sabayon/sabayon-x86-xfce.spec new file mode 100644 index 0000000..157ca9d --- /dev/null +++ b/examples/specs/sabayon/sabayon-x86-xfce.spec @@ -0,0 +1,11 @@ +# Use abs path, otherwise daily builds automagic won't work +%import /sabayon/molecules/xfce.common + +# 32bit chroot +prechroot: linux32 + +# Path to source ISO file (MANDATORY) +source_iso: /sabayon/iso/Sabayon_Linux_SpinBase_DAILY_x86.iso + +# Destination ISO image name, call whatever you want.iso, not mandatory +destination_iso_image_name: Sabayon_Linux_5.3_x86_XFCE.iso diff --git a/examples/specs/sabayon/spinbase.common b/examples/specs/sabayon/spinbase.common new file mode 100644 index 0000000..e66c208 --- /dev/null +++ b/examples/specs/sabayon/spinbase.common @@ -0,0 +1,110 @@ +# Execution strategy +execution_strategy: livecd + +# Release string +release_string: Sabayon Linux + +# File to write release string +release_file: /etc/sabayon-edition + +# Destination chroot directory, where files are pushed to before creating the squashfs image +# NOTE: data will be stored inside an auto-generated subdir +destination_chroot: /sabayon + +# Extra mirror (r)sync parameters +extra_rsync_parameters: --one-file-system --exclude "/proc/*" --exclude "/dev/pts/*" + +# 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 +inner_chroot_script: /sabayon/scripts/inner_chroot_script.sh spinbase + +# Destination LiveCD root directory, where files are placed before getting mkisofs'ed +# NOTE: data will be stored inside an auto-generated subdir +destination_livecd_root: /sabayon + +# Merge directory with destination LiveCD root +merge_livecd_root: /sabayon/boot/core + +# Extra mkisofs parameters, perhaps something to include/use your bootloader +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 + +# Destination directory for the ISO image path +destination_iso_directory: /sabayon/iso + +# Directories to remove completely (comma separated) +paths_to_remove: + /var/lib/entropy/client/database/*/sabayonlinux.org, + /boot/grub/grub.conf, + /root/.subversion, + /lib/udev-state/devices.tar.bz2, + /var/log/scrollkeeper.log, /var/log/genkernel.log, + /var/log/emerge.log, /usr/tmp/portage/*, + /root/.bash_history, + /usr/share/slocate/slocate.db, + /root/test-results.txt, + /root/test.sh, + /usr/portage/distfiles/*, + /usr/portage/packages/*, + /root/.revdep*, + /install-data/games/*, + /var/lib/entropy/store/*, + /var/log/entropy/*, + /var/lib/entropy/caches/*, + /var/lib/entropy/smartapps/*/*, + /var/lib/entropy/smartapps/*/*, + /var/lib/entropy/tmp/*, + /var/lib/entropy/packages*/*, + /var/tmp/entropy/*, + /*.txt, + /usr/portage/a*, + /usr/portage/b*, + /usr/portage/c*, + /usr/portage/d*, + /usr/portage/e*, + /usr/portage/f*, + /usr/portage/g*, + /usr/portage/h*, + /usr/portage/i*, + /usr/portage/j*, + /usr/portage/k*, + /usr/portage/licenses, + /usr/portage/lxde*, + /usr/portage/m*, + /usr/portage/n*, + /usr/portage/o*, + /usr/portage/packages, + /usr/portage/pe*, + /usr/portage/q*, + /usr/portage/r*, + /usr/portage/s*, + /usr/portage/t*, + /usr/portage/u*, + /usr/portage/v*, + /usr/portage/w*, + /usr/portage/x*, + /usr/portage/y*, + /usr/portage/z*, + /etc/ssh/ssh_host_*, + /entropy, + /tmp/equoerror.txt, + /var/cache/man, + /var/lib/entropy/glsa/*, + /root/local, + /var/tmp/*, + /boot/grub/device.map + +# Directories to empty (comma separated) +paths_to_empty: + /home/sabayonuser/.thumbnails/, + /root/.ccache, + /var/tmp/portage, + /var/tmp/ccache, + /var/tmp/portage-pkg, + /var/tmp/binpkgs, + /var/lib/entropy/portage, + /var/lib/entropy/logs, + /var/cache/genkernel diff --git a/examples/specs/sabayon/xfce.common b/examples/specs/sabayon/xfce.common new file mode 100644 index 0000000..6068b0d --- /dev/null +++ b/examples/specs/sabayon/xfce.common @@ -0,0 +1,65 @@ +# Define an alternative execution strategy, in this case, the value must be +# "iso_remaster" +execution_strategy: iso_remaster + +# ISO Image title +iso_title: Sabayon XFCE + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and before inner_chroot_script) +outer_chroot_script: /sabayon/scripts/remaster_pre.sh + +# Inner chroot script command, to be executed inside destination chroot after +# packages installation and removal +inner_chroot_script_after: /sabayon/scripts/remaster_generic_inner_chroot_script_after.sh xfce + +# Outer chroot script command, to be executed outside destination chroot before +# before entering it (and AFTER inner_chroot_script) +outer_chroot_script_after: /sabayon/scripts/remaster_post.sh + +# Extra mkisofs parameters, perhaps something to include/use your bootloader +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 + +# Destination directory for the ISO image path (MANDATORY) +destination_iso_directory: /sabayon/iso + +# List of packages that would be removed from chrooted system (comma separated) +packages_to_remove: + www-client/lynx, + sys-boot/grub:0, + x11-libs/qt-qt3support, + app-text/poppler-qt4, + x11-libs/qt-gui + +# List of packages that would be added from chrooted system (comma separated) +packages_to_add: + @X, + sys-apps/gpu-detector, + app-emulation/virtualbox-guest-additions, + x11-drivers/xf86-video-virtualbox, + @xfce, + app-misc/anaconda-runtime-gui, + app-text/pastebunz, + gnome-extra/nm-applet, + xterm, + x11-terms/terminal, + xfce-extra/xfce4-mixer + +# 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: yes + +# Directories to remove completely (comma separated) +# paths_to_remove: + +# Directories to empty (comma separated) +# paths_to_empty: