From aa78cea3e120a49838d2f00f04cbee19324cc15f Mon Sep 17 00:00:00 2001 From: Eric Thibodeau Date: Fri, 22 Aug 2008 00:19:06 -0400 Subject: A script which is an example of the sequence used to create the minimal LiveCD (no X) - The script does assume the environment is up and functionnal as per LiveCD-HOWTO --- minimumMakeCD.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 minimumMakeCD.sh diff --git a/minimumMakeCD.sh b/minimumMakeCD.sh new file mode 100755 index 0000000..8895c57 --- /dev/null +++ b/minimumMakeCD.sh @@ -0,0 +1,28 @@ +umount /var/git/clustering-livecd/catalyst/livecd/2008.0/overlay/tftproot/nfsroot/x86_64/ +umount /var/tmp/catalyst/tmp/default + +clean(){ + find /var/tmp/catalyst/packages/ -regextype posix-extended -regex '.*(beowulf|aufs|ldap-auth|torque|diradm).*' -exec rm -f {} \; +} + +run_catalyst(){ + schedtool -B -n -4 -e catalyst -f $1 || exit 1 +} + +clean + +mount -t tmpfs -o size=7G,noatime catalystbuild /var/tmp/catalyst/tmp/default + +run_catalyst /var/git/clustering-livecd/catalyst/nfsroot/2008.0/specs/amd64/nfsroot_stage4-slim.spec +run_catalyst /var/git/clustering-livecd/catalyst/livecd/2008.0/specs/amd64/livecd-stage1-minimal.spec + +# untill catalyst allows inserting our own MOTD even with the gentoo-release-livecd livecd/type, +# we overwrite the installed MOTD from catalyst: +cp /var/git/clustering-livecd/catalyst/livecd/2008.0/misc/clusterlivecd.motd.txt /usr/lib64/catalyst/livecd/files/livecd.motd.txt + +mount -o bind /var/tmp/catalyst/tmp/default/stage4-amd64-nfsroot-20080816/ /var/git/clustering-livecd/catalyst/livecd/2008.0/overlay/tftproot/nfsroot/x86_64/ + +clean + +run_catalyst /var/git/clustering-livecd/catalyst/livecd/2008.0/specs/amd64/livecd-stage2-minimal.spec + -- cgit v1.2.3-65-gdbad