diff --git a/examples/remaster_inner_chroot_script.sh b/examples/remaster_inner_chroot_script.sh new file mode 100755 index 0000000..065892e --- /dev/null +++ b/examples/remaster_inner_chroot_script.sh @@ -0,0 +1,3 @@ +#!/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 new file mode 100755 index 0000000..df8330c --- /dev/null +++ b/examples/remaster_inner_chroot_script_after.sh @@ -0,0 +1,33 @@ +#!/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 new file mode 100755 index 0000000..8f6f26c --- /dev/null +++ b/examples/remaster_post.sh @@ -0,0 +1,7 @@ +#!/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.sh b/examples/remaster_pre.sh new file mode 100755 index 0000000..70ff214 --- /dev/null +++ b/examples/remaster_pre.sh @@ -0,0 +1,10 @@ +#!/bin/sh +PKGS_DIR="/sabayon/remaster/pkgs" +CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/packages" + +[[ ! -d "${PKGS_DIR}" ]] && mkdir -p "${PKGS_DIR}" +[[ ! -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" diff --git a/examples/remaster_pre_iso_script.sh b/examples/remaster_pre_iso_script.sh new file mode 100755 index 0000000..bdad5cd --- /dev/null +++ b/examples/remaster_pre_iso_script.sh @@ -0,0 +1,5 @@ +#!/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"