diff options
author | 2008-08-22 00:19:06 -0400 | |
---|---|---|
committer | 2008-08-22 00:19:06 -0400 | |
commit | aa78cea3e120a49838d2f00f04cbee19324cc15f (patch) | |
tree | 64a134680a4fc171103da9254dfcf6db1be24182 | |
parent | Pull out most of config_ssh() into it's own stand-alone script (diff) | |
download | clustering-livecd-aa78cea3e120a49838d2f00f04cbee19324cc15f.tar.gz clustering-livecd-aa78cea3e120a49838d2f00f04cbee19324cc15f.tar.bz2 clustering-livecd-aa78cea3e120a49838d2f00f04cbee19324cc15f.zip |
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
-rwxr-xr-x | minimumMakeCD.sh | 28 |
1 files changed, 28 insertions, 0 deletions
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 + |