-q skip mksquashfs
-Q skip netboot package build
-r <release_name> release name
- -s <suite> Debian suite; values: etch, lenny, squeeze, sid
+ -s <suite> Debian suite/release, like: stable, testing, unstable
-t <template_directory> place of the templates
-u update existing chroot instead of rebuilding it from scratch
-U <username> arrange output to be owned by specified username
$PN
$PN -c GRMLBASE,GRML_FULL,AMD64 -o /dev/shm/grml
$PN -c GRMLBASE,GRML_FULL,AMD64 -i grml_0.0-1.iso -v 0.0-1
- $PN -c GRMLBASE,GRML_FULL,AMD64 -s sid -V -r 'grml-live rocks'
+ $PN -c GRMLBASE,GRML_FULL,AMD64 -s stable -V -r 'grml-ftw'
More details: man grml-live + /usr/share/doc/grml-live/grml-live.html
http://grml.org/grml-live/
# source main configuration file:
LIVE_CONF=/etc/grml/grml-live.conf
if ! [ -r "$LIVE_CONF" ] ; then
- log "Confuguration file $LIVE_CONF can not be read, ignoring"
+ ewarn "Configuration file $LIVE_CONF can not be read, ignoring"
else
- log "Sourcing configuration file $LIVE_CONF"
einfo "Sourcing configuration file $LIVE_CONF"
. $LIVE_CONF
eend $?
# generate nfsroot configuration for FAI on the fly
if [ -z "$FAI_DEBOOTSTRAP" ] ; then
- FAI_DEBOOTSTRAP="$SUITE http://cdn.debian.net/debian"
+ FAI_DEBOOTSTRAP="$SUITE http://http.debian.net/debian"
fi
if [ -z "$FAI_DEBOOTSTRAP_OPTS" ] ; then
-u "$HOSTNAME" "$FAI_ACTION" "$CHROOT_OUTPUT" $FAI_ARGS | tee -a $LOGFILE
RC="$PIPESTATUS" # notice: bash-only
+ if [ "$RC" != 0 ] ; then
+ log "Error: critical error while executing fai [exit code ${RC}]. Exiting."
+ eerror "Error: critical error while executing fai [exit code ${RC}]. Exiting." ; eend 1
+ bailout 1
+ fi
+
# provide inform fai about the ISO we build, needs to be provided
# *after* FAI stage, otherwise FAI skips the debootstrap stage if
# there is not BASEFILE (as it checks for presence of /etc) :(
FORCE_ISO_REBUILD=true
- if [ "$RC" != 0 ] ; then
- log "Error: critical error while executing fai [exit code ${RC}]. Exiting."
- eerror "Error: critical error while executing fai [exit code ${RC}]. Exiting." ; eend 1
- bailout 1
- fi
-
# move fai logs into grml_logs directory
mkdir -p "$LOG_OUTPUT"/fai/
cp -r "$CHROOT_OUTPUT"/var/log/fai/"$HOSTNAME"/last/* "$LOG_OUTPUT"/fai/
mkdir -p "$NETBOOT"
- if ! [ -r "${CHROOT}/usr/lib/syslinux/pxelinux.0" ] ; then
+ if ! [ -r "${CHROOT_OUTPUT}/usr/lib/syslinux/pxelinux.0" ] ; then
ewarn "File /usr/lib/syslinux/pxelinux.0 not found in build chroot." ; eend 0
eindent
einfo "Install syslinux[-common] package in chroot to get a netboot package."