# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/default-runscript.sh,v 1.6 2004/01/17 22:13:40 brad_mssw Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/default-runscript.sh,v 1.7 2004/01/18 21:24:28 brad_mssw Exp $
# Section has been handled, do not execute additional scripts
RETURN_GOOD=0
# Should continue
RETURN_CONTINUE=2
-# Set default looptype to zisofs
-if [ "${LOOPTYPE}" == "" ]
-then
- LOOPTYPE="zisofs"
-fi
-
-export LOOPTYPE
-
die() {
echo "$1"
exit $RETURN_BAD
# runscript: cdroot_setup
# livecd-stage3 completes.
+# Set default looptype to zisofs
+
+if [ "${LOOPTYPE}" == "" ]
+then
+ LOOPTYPE="zisofs"
+fi
+
+export LOOPTYPE
+
+if [ "${LOOPTYPE}" = "zisofs" ]
+then
+ loop_opts="looptype=zisofs loop=/zisofs"
+elif [ "${LOOPTYPE}" = "normal" ]
+then
+ loop_opts="looptype=normal loop=/livecd.loop"
+elif [ "${LOOPTYPE}" = "noloop" ]
+then
+ # no loop at all wanted, just a raw copy on a cd
+ loop_opts="looptype=noloop"
+fi
+# loop options to be passed to the kernel
+export loop_opts
if [ "${ARCH_RUNSCRIPT}" == "" -o ! -f "${ARCH_RUNSCRIPT}" ]
then
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/x86-runscript.sh,v 1.6 2004/01/17 18:37:25 brad_mssw Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/examples/livecd/runscript/Attic/x86-runscript.sh,v 1.7 2004/01/18 21:24:28 brad_mssw Exp $
# Section has been handled, do not execute additional scripts
RETURN_GOOD=0
;;
setup_bootloader)
- # LOOPTYPE should be exported from default runscript, we use it to
- # determine kernel args
- if [ "${LOOPTYPE}" = "zisofs" ]
- then
- loop_opts="looptype=zisofs loop=/zisofs"
- elif [ "${LOOPTYPE}" = "normal" ]
- then
- loop_opts="looptype=normal loop=/livecd.loop"
- elif [ "${LOOPTYPE}" = "noloop" ]
- then
- # no loop at all wanted, just a raw copy on a cd
- loop_opts="looptype=noloop"
- fi
+ # LOOPTYPE and loop_opts are exported from the default
+ # runscript
#Time to create a filesystem tree for the ISO at $clst_cdroot_path.
#We extract the "cdtar" to this directory, which will normally contains a pre-built