# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: Sun Sep 16 23:53:24 CEST 2007 [mika]
+# Latest change: Mon Sep 17 18:31:35 CEST 2007 [mika]
################################################################################
# read configuration files, set some misc variables {{{
echo "
$PN - build process script for generating a (grml based) Linux Live-ISO
-Usage: $PN [-c <classe[s]>] [-t <target_directory>] [-F] [-h|--help] [additional_arguments_for_fai]
+Usage: $PN [-c <classe[s]>] [-t <target_directory>] [-s <suite> [-Fvh]
Usage examples:
$PN
- $PN -c GRML,I386 -t /dev/shm/grml
- $PN -c GRML,GRML_X,I386 -t /grml/
- $PN -c GRML,I386
+ $PN -c GRMLBASE,I386 -t /dev/shm/grml
+ $PN -c GRMLBASE,GRML_X,I386 -t /grml/
+ $PN -c GRMLBASE,GRML_SMALL,I386
+ $PN -s sid -c GRMLBASE,I386
More details: man grml-live
/usr/share/doc/grml-live/grml-live.html
echo "$GRML_LIVE_SOURCES" > /etc/grml/fai/apt/sources.list
fi
-# we assume that it is set to 'etch' by default
+# this heuristic is broken as it works exactly *once* by default :-/
+# TODO / FIXME
if [ -n "$SUITE" ] ; then
sed -i "s#etch #$SUITE #" /etc/grml/fai/make-fai-nfsroot.conf
sed -i "s#etch #$SUITE #" /etc/grml/grml-live.conf
fai $VERBOSE -C "$GRML_FAI_CONFIG" -c"$CLASSES" dirinstall "$CHROOT_TARGET" $FAI_ARGS
umount $CHROOT_TARGET/proc 2>/dev/null || /bin/true
umount $CHROOT_TARGET/sys 2>/dev/null || /bin/true
- echo " [*] Finished execution of stage 'fai dirinstall'"
+ # notice: 'fai dirinstall' does not seem to exit appropriate ->
+ # we need better error handling
+ if [ -r "$CHROOT_TARGET"/etc/grml_cd ] ; then
+ echo " [*] Finished execution of stage 'fai dirinstall'"
+ else
+ echo " [!] There was an error during execution of stage 'fai dirinstall'"
+ exit 1
+ fi
fi
# }}}
# }}}
## END OF FILE #################################################################
-# vim:foldmethod=marker ts=2 ft=sh ai expandtab tw=80 sw=2
+# vim:foldmethod=marker ts=2 ft=sh ai expandtab tw=80 sw=3