3 # Purpose: build process script for generating a (grml based) Linux Live-ISO
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 # Latest change: Die Okt 30 00:09:42 CET 2007 [mika]
8 ################################################################################
10 # read configuration files, set some misc variables {{{
18 GRML_LIVE_VERSION='0.0.7'
20 ISO_DATE="$(date +%Y-%m-%d)"
22 # we need root permissions for the build-process:
23 if [ "$(id -u 2>/dev/null)" != 0 ] ; then
24 echo "Error: please run this script with uid 0 (root)." >&2
28 if [ -r /var/run/fai/FAI_INSTALLATION_IN_PROGRESS ] ; then
29 echo "/usr/sbin/fai already running or was aborted before.">&2
30 echo "You may remove /var/run/fai/FAI_INSTALLATION_IN_PROGRESS and try again.">&2
34 if [ -r /var/run/fai/fai_softupdate_is_running ] ; then
35 echo "/usr/sbin/fai softupdate already running or was aborted before.">&2
36 echo "You may remove /var/run/fai/fai_softupdate_is_running and try again.">&2
40 # make sure they are not set by default
45 if [ -r /etc/grml/lsb-functions ] ; then
46 . /etc/grml/lsb-functions
48 einfo() { echo " [*] $*" ;}
49 eerror() { echo " [!] $*">&2 ;}
50 ewarn() { echo " [x] $*" ;}
54 # source main configuration file:
55 LIVE_CONF=/etc/grml/grml-live.conf
63 [ -n "$MIRROR_DIRECTORY" ] && umount "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
64 [ -n "$1" ] && EXIT="$1" || EXIT="1"
65 [ -n "$2" ] && eerror "$2">&2
66 log "------------------------------------------------------------------------------"
72 # check for important variables {{{
73 [ -n "$GRML_FAI_CONFIG" ] || GRML_FAI_CONFIG=/etc/grml/fai
74 [ -n "$HOSTNAME" ] || HOSTNAME=grml
75 [ -n "$USERNAME" ] || USERNAME=grml
76 [ -n "$CLASSES" ] || CLASSES="GRML,I386"
77 [ -n "$BOOT_METHOD" ] || BOOT_METHOD='isolinux'
78 [ -n "$OUTPUT" ] || bailout 1 "${PN}: \$OUTPUT not specified. Please adjust $LIVE_CONF. Exiting."
80 [ -n "$VERSION" ] || VERSION="0.0.1"
81 [ -n "$RELEASENAME" ] || RELEASENAME="grml-live rocks"
82 [ -n "$GRML_NAME" ] || GRML_NAME='grml'
85 if [ -z "$LOGFILE" ] ; then
86 LOGFILE=/var/log/grml-live.log
89 chown root:adm $LOGFILE
92 if [ -n "$ZERO_LOGFILE" ] ; then
96 NFSROOT_CONF=/etc/grml/fai/make-fai-nfsroot.conf
100 # some important functions {{{
103 # usage: log "string to log"
104 log() { echo "$*" >> $LOGFILE ; }
106 # cut string at character number int = $1
107 # usage: cut_string 5 "1234567890" will output "12345"
109 [ -n "$2" ] || return 1
110 echo "$2" | head -c "$1"; echo -ne "\n"
113 # prepend int = $1 spaces before string = $2
114 # usage: extend_string_begin 5 "123" will output " 123"
115 extend_string_begin() {
116 [ -n "$2" ] || return 1
117 local COUNT="$(echo $2 | wc -c)"
118 local FILL="$(expr $COUNT - $1)"
119 while [ "$FILL" -gt 1 ] ; do
121 local FILL=$(expr $FILL - 1)
123 while [ "$FILL" -lt 1 ] ; do
125 local FILL=$(expr $FILL + 1)
127 echo "$2" | head -c "$1"; echo -ne "\n"
130 # append int = $1 spaces to string = $2
131 # usage: extend_string_begin 5 "123" will output "123 "
132 extend_string_end() {
133 [ -n "$2" ] || return 1
134 echo -n "$2" | head -c "$1"
135 local COUNT="$(echo $2 | wc -c)"
136 local FILL="$(expr $COUNT - $1)"
137 while [ "$FILL" -gt 1 ] ; do
139 local FILL=$(expr $FILL - 1)
141 while [ "$FILL" -lt 1 ] ; do
143 local FILL=$(expr $FILL + 1)
149 # usage information {{{
153 $PN - build process script for generating a (grml based) Linux Live-ISO
155 Usage: $PN [-a <architecture>] [-c <classe[s]>] [-g <grml_name>] \\
156 [-i <iso_name> ] [-o <output_directory>] [-s <suite>] \\
157 [-t <template_directory>] [-s <suite>] \\
158 [-v <version_number>] [-FVhu]
163 $PN -c GRMLBASE,GRML_SMALL,I386 -o /grml/
164 $PN -c GRMLBASE,GRML_MEDIUM,I386 -o /dev/shm/grml
165 $PN -c GRMLBASE,GRML_SMALL,I386 -g grml-small -v 1.0
166 $PN -c GRMLBASE,GRML_FULL,I386 -i grml_0.0-1.iso -v 0.0-1
167 $PN -c GRMLBASE,GRML_FULL,I386 -s sid -V -r 'grml-live rocks'
169 More details: man grml-live
170 /usr/share/doc/grml-live/grml-live.html
172 Please send your bug reports, feedback,.. to the grml-team.
173 http://grml.org/bugs/
178 # command line parsing {{{
180 while getopts "a:c:g:i:o:r:s:t:v:FhuV" opt; do
183 c) CLASSES="$OPTARG" ;;
184 g) GRML_NAME="$OPTARG" ;;
185 i) ISO_NAME="$OPTARG" ;;
187 CHROOT_OUTPUT="$OUTPUT/grml_chroot"
188 BUILD_OUTPUT="$OUTPUT/grml_cd"
189 ISO_OUTPUT="$OUTPUT/grml_isos"
191 r) RELEASENAME="$OPTARG" ;;
192 s) SUITE="$OPTARG" ;;
193 t) TEMPLATE_DIRECTORY="$OPTARG";;
194 v) VERSION="$OPTARG" ;;
196 h) usage ; bailout 0 ;;
199 ?) echo "invalid option -$OPTARG" >&2; bailout 1 ;;
202 shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter
205 # some misc checks before executing FAI {{{
206 [ -n "$CLASSES" ] || bailout 1 "Error: \$CLASSES unset, please set it in $LIVE_CONF or
207 specify it on the command line using the -c option."
208 [ -n "$OUTPUT" ] || bailout 1 "Error: \$OUTPUT unset, please set it in $LIVE_CONF or
209 specify it on the command line using the -o option."
212 # ask user whether the setup is ok {{{
213 if [ -z "$FORCE" ] ; then
215 echo "${PN} [${GRML_LIVE_VERSION}]: check your configuration (or use -F to force execution):"
217 echo " FAI classes: $CLASSES"
218 echo " main directory: $OUTPUT"
219 [ -n "$CHROOT_OUTPUT" ] && echo " chroot target: $CHROOT_OUTPUT"
220 [ -n "$BUILD_OUTPUT" ] && echo " build target: $BUILD_OUTPUT"
221 [ -n "$ISO_OUTPUT" ] && echo " ISO target: $ISO_OUTPUT"
222 [ -n "$GRML_NAME" ] && echo " grml name: $GRML_NAME"
223 [ -n "$RELEASENAME" ] && echo " release name: $RELEASENAME"
224 [ -n "$VERSION" ] && echo " grml version: $VERSION"
225 [ -n "$SUITE" ] && echo " Debian suite: $SUITE"
226 [ -n "$ARCH" ] && echo " Architecture: $ARCH"
227 [ -n "$BOOT_METHOD" ] && echo " Boot method: $BOOT_METHOD"
228 [ -n "$TEMPLATE_DIRECTORY" ] && echo " Template files: $TEMPLATE_DIRECTORY"
229 [ -n "$FAI_ARGS" ] && echo " additional arguments for FAI: $FAI_ARGS"
230 [ -n "$LOGFILE" ] && echo " Logging to file: $LOGFILE"
231 [ -n "$VERBOSE" ] && echo " Using VERBOSE mode."
232 [ -n "$UPDATE" ] && echo " Executing UPDATE instead of fresh installation."
234 echo -n "Is this ok for you? [y/N] "
236 if ! [ "$a" = 'y' -o "$a" = 'Y' ] ; then
237 bailout 1 "Exiting as requested."
242 start_seconds=$(cut -d . -f 1 /proc/uptime)
243 log "------------------------------------------------------------------------------"
244 log "Starting grml-live [${GRML_LIVE_VERSION}] run on $(date)"
245 log "Executed command line: $CMDLINE"
247 einfo "Logging actions to logfile $LOGFILE"
250 # on-the-fly configuration {{{
251 if [ -n "$MIRROR_DIRECTORY" ] ; then
252 if ! [ -d "$MIRROR_DIRECTORY/debian" ] ; then
253 log "Sorry, $MIRROR_DIRECTORY/debian does not seem to exist. Exiting. [$(date)]"
254 eerror "Sorry, $MIRROR_DIRECTORY/debian does not seem to exist. Exiting."
257 echo "$MIRROR_SOURCES" > /etc/grml/fai/apt/sources.list
258 if [ -n "$GRML_LIVE_SOURCES" ] ; then
259 echo "$GRML_LIVE_SOURCES" >> /etc/grml/fai/apt/sources.list
261 elif [ -n "$GRML_LIVE_SOURCES" ] ; then
262 echo "$GRML_LIVE_SOURCES" > /etc/grml/fai/apt/sources.list
265 if [ -n "$FAI_DEBOOTSTRAP" ] ; then
266 sed -i "s#^FAI_DEBOOTSTRAP=.*#FAI_DEBOOTSTRAP=\"$FAI_DEBOOTSTRAP\"#" $NFSROOT_CONF
269 # does this suck? YES!
270 if [ -n "$SUITE" ] ; then
271 sed -i "s/SUITE=.*/SUITE=\"$SUITE\"/" $LIVE_CONF
273 DIST="\|\ etch\ \|\ stable\ \|\ lenny\ \|\ testing\ \|\ sid\ \|\ unstable\ "
274 sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" $LIVE_CONF
275 sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" /etc/grml/fai/apt/sources.list
276 # notice: activate grml-live pool only if we are building against unstable:
277 if grep -qe unstable -qe sid /etc/grml/fai/apt/sources.list ; then
278 grep -q 'grml-live.*main' /etc/grml/fai/apt/sources.list || \
279 grep grml-stable /etc/grml/fai/apt/sources.list | \
280 sed 's/grml-stable/grml-live/' >> /etc/grml/fai/apt/sources.list
282 grep -q 'grml-live.*main' /etc/grml/fai/apt/sources.list && \
283 sed -i 's/.*grml-live.*/# removed grml-live repository/' /etc/grml/fai/apt/sources.list
286 sed -i "s|FAI_DEBOOTSTRAP=\"[a-z]* |FAI_DEBOOTSTRAP=\"$SUITE |" $LIVE_CONF
287 sed -i "s|FAI_DEBOOTSTRAP=\"[a-z]* |FAI_DEBOOTSTRAP=\"$SUITE |" $NFSROOT_CONF
291 [ -n "$ARCH" ] || ARCH="$(dpkg --print-architecture)"
292 if grep -q -- 'FAI_DEBOOTSTRAP_OPTS.*--arch' $NFSROOT_CONF ; then
293 sed -i "s/--arch [a-z0-9]* /--arch $ARCH /" $NFSROOT_CONF
295 sed -i "s|FAI_DEBOOTSTRAP_OPTS=\"\(.*\)|FAI_DEBOOTSTRAP_OPTS=\"--arch $ARCH \1|" $NFSROOT_CONF
299 # CHROOT_OUTPUT - execute FAI {{{
300 [ -n "$CHROOT_OUTPUT" ] || CHROOT_OUTPUT="$OUTPUT/grml_chroot"
302 if [ -n "$UPDATE" ] ; then
303 FAI_ACTION=softupdate
305 FAI_ACTION=dirinstall
308 if [ -n "$UPDATE" ] ; then
309 if ! [ -r "$CHROOT_OUTPUT/etc/grml_version" ] ; then
310 log "Error: It does not look like you have a working chroot system. Updating not possible."
311 eerror "Error: It does not look like you have a working chroot system. Updating not possible."
317 if [ -d "$CHROOT_OUTPUT/bin" -a -z "$UPDATE" ] ; then
318 log "$CHROOT_OUTPUT exists already, skipping stage 'fai dirinstall'"
319 ewarn "$CHROOT_OUTPUT exists already, skipping stage 'fai dirinstall'" ; eend 0
321 mkdir -p "$CHROOT_OUTPUT" || bailout 5 "Problem with creating $CHROOT_OUTPUT for FAI"
322 if [ -n "${MIRROR_DIRECTORY}" ] ; then
323 mkdir -p "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
324 mount --bind "${MIRROR_DIRECTORY}" "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
326 fai $VERBOSE -C "$GRML_FAI_CONFIG" -c"$CLASSES" -u "$HOSTNAME" $FAI_ACTION "$CHROOT_OUTPUT" $FAI_ARGS | tee -a $LOGFILE
327 log "Setting /etc/grml_version to $GRML_NAME $VERSION Release Codename $RELEASENAME [$ISO_DATE]"
328 echo "$GRML_NAME $VERSION Release Codename $RELEASENAME [$ISO_DATE]" > $CHROOT_OUTPUT/etc/grml_version
329 chmod 644 $CHROOT_OUTPUT/etc/grml_version
330 umount $CHROOT_OUTPUT/proc 2>/dev/null || /bin/true
331 umount $CHROOT_OUTPUT/sys 2>/dev/null || /bin/true
332 [ -n "$MIRROR_DIRECTORY" ] && umount "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
334 # notice: 'fai dirinstall' does not seem to exit appropriate, so:
336 if [ -r "/var/log/fai/dirinstall/$HOSTNAME/software.log" ] ; then
337 # 1 errors during executing of commands
338 # Unable to write mmap - msync (28 No space left on device)
339 # 'No candidate version found for' [/var/log/fai/current/software.log]
340 grep 'dpkg: error processing' /var/log/fai/dirinstall/$HOSTNAME/software.log >> $LOGFILE && ERROR=1
341 grep 'E: Method http has died unexpectedly!' /var/log/fai/dirinstall/$HOSTNAME/software.log >> $LOGFILE && ERROR=2
342 grep 'ERROR: chroot' /var/log/fai/dirinstall/$HOSTNAME/software.log >> $LOGFILE && ERROR=3
345 if [ -r "/var/log/fai/dirinstall/$HOSTNAME/shell.log" ] ; then
346 grep 'FAILED with exit code' /var/log/fai/dirinstall/$HOSTNAME/shell.log >> $LOGFILE && ERROR=2
349 if [ -n "$ERROR" ] ; then
350 log "There was an error [${ERROR}] during execution of stage 'fai dirinstall' [$(date)]"
351 eerror "There was an error during execution of stage 'fai dirinstall'"
352 echo " Check out /var/log/fai/dirinstall/$HOSTNAME/ for details. [exit ${ERROR}]"
356 log "Finished execution of stage 'fai dirinstall' [$(date)]"
357 einfo "Finished execution of stage 'fai dirinstall'"
362 # BUILD_OUTPUT - execute arch specific stuff and squashfs {{{
363 [ -n "$BUILD_OUTPUT" ] || BUILD_OUTPUT="$OUTPUT/grml_cd"
364 mkdir -p "$BUILD_OUTPUT" || bailout 6 "Problem with creating $BUILD_OUTPUT for stage ARCH"
367 if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then
368 if [ -d "$BUILD_OUTPUT"/boot -a -z "$UPDATE" ] ; then
369 log "$BUILD_OUTPUT/boot exists already, skipping stage 'boot'"
370 ewarn "$BUILD_OUTPUT/boot exists already, skipping stage 'boot'" ; eend 0
373 [ -d "$BUILD_OUTPUT"/boot/isolinux ] || mkdir -p "$BUILD_OUTPUT"/boot/isolinux
374 cp /boot/memtest86+.bin "$BUILD_OUTPUT"/boot/isolinux/memtest
376 # if we don't have an initrd we a) can't boot and b) there was an error
377 # during build, so check for the file:
378 if [ -f "$CHROOT_OUTPUT"/boot/initrd* ] ; then
379 cp "$CHROOT_OUTPUT"/boot/initrd* "$BUILD_OUTPUT"/boot/isolinux/initrd.gz
381 log "No initrd found inside $CHROOT_OUTPUT/boot/ - Exiting"
382 eerror "No initrd found inside $CHROOT_OUTPUT/boot/ - Exiting" ; eend 1
386 KERNEL_IMAGE="$(ls $CHROOT_OUTPUT/boot/vmlinuz* | sort -r | head -1)"
387 cp "$KERNEL_IMAGE" "$BUILD_OUTPUT"/boot/isolinux/linux26
388 cp /usr/lib/syslinux/chain.c32 "$BUILD_OUTPUT"/boot/isolinux/
389 cp /usr/lib/syslinux/isolinux.bin "$BUILD_OUTPUT"/boot/isolinux/
390 cp /usr/lib/syslinux/memdisk "$BUILD_OUTPUT"/boot/isolinux/
391 cp /usr/lib/syslinux/menu.c32 "$BUILD_OUTPUT"/boot/isolinux/
393 [ -n "$TEMPLATE_DIRECTORY" ] || TEMPLATE_DIRECTORY='/usr/share/grml-live/templates'
394 if ! [ -d "${TEMPLATE_DIRECTORY}"/boot ] ; then
395 log "${TEMPLATE_DIRECTORY}/boot does not exist. Exiting."
396 eerror "${TEMPLATE_DIRECTORY}/boot does not exist. Exiting." ; eend 1
400 cp ${TEMPLATE_DIRECTORY}/boot/isolinux/* "$BUILD_OUTPUT"/boot/isolinux/
401 cp ${TEMPLATE_DIRECTORY}/boot/isolinux/* "$BUILD_OUTPUT"/boot/isolinux/
403 if ! [ -d "${BUILD_OUTPUT}/boot/grub" ] ; then
404 cp -a ${TEMPLATE_DIRECTORY}/boot/grub "$BUILD_OUTPUT"/boot/
407 if ! [ -d "${TEMPLATE_DIRECTORY}"/GRML ] ; then
408 log "${TEMPLATE_DIRECTORY}/GRML does not exist. Exiting."
409 eerror "${TEMPLATE_DIRECTORY}/GRML does not exist. Exiting." ; eend 1
413 [ -d "$BUILD_OUTPUT"/GRML ] || mkdir "$BUILD_OUTPUT"/GRML
414 cp -a ${TEMPLATE_DIRECTORY}/GRML/* "$BUILD_OUTPUT"/GRML/
416 # adjust boot splash information:
417 RELEASE_INFO="$GRML_NAME $VERSION - Release Codename $RELEASENAME"
418 RELEASE_INFO="$(cut_string 68 "$RELEASE_INFO")"
419 RELEASE_INFO="$(extend_string_end 68 "$RELEASE_INFO")"
421 sed -i "s/%RELEASE_INFO%/$GRML_NAME $VERSION - $RELEASENAME/" "$BUILD_OUTPUT"/GRML/grml-version
422 sed -i "s/%DATE%/$ISO_DATE/" "$BUILD_OUTPUT"/GRML/grml-version
424 sed -i "s/%RELEASE_INFO%/$RELEASE_INFO/" "$BUILD_OUTPUT"/boot/isolinux/boot.msg
425 sed -i "s/%DATE%/$ISO_DATE/" "$BUILD_OUTPUT"/boot/isolinux/boot.msg
427 sed -i "s/%RELEASE_INFO%/$RELEASE_INFO/" "$BUILD_OUTPUT"/boot/isolinux/boot-beep.msg
428 sed -i "s/%DATE%/$ISO_DATE/" "$BUILD_OUTPUT"/boot/isolinux/boot-beep.msg
430 sed -i "s/%VERSION%/$VERSION/" "$BUILD_OUTPUT"/boot/grub/menu.lst
431 sed -i "s/%GRML_NAME%/$GRML_NAME/" "$BUILD_OUTPUT"/boot/grub/menu.lst
433 # autostart for Windows:
434 if [ -d "${TEMPLATE_DIRECTORY}/windows/autostart/" ] ; then
435 cp ${TEMPLATE_DIRECTORY}/windows/autostart/* "$BUILD_OUTPUT"/
439 if [ -n "$WINDOWS_BINARIES" ] ; then
440 if [ -f "$BUILD_OUTPUT"/windows/putty.exe ] ; then
441 log "$BUILD_OUTPUT/windows exists already, skipping stage 'WINDOWS_BINARIES'"
442 ewarn "$BUILD_OUTPUT/windows exists already, skipping stage 'WINDOWS_BINARIES'" ; eend 0
444 if ! [ -d "$BUILD_OUTPUT"/windows ] ; then
445 mkdir "$BUILD_OUTPUT"/windows
446 ( cd "$BUILD_OUTPUT"/windows
447 for file in pageant plink pscp psftp putty puttygen ; do
448 wget -O ${file}.exe ${WINDOWS_BINARIES}/${file}.exe
452 log "Finished execution of stage 'WINDOWS_BINARIES' [$(date)]"
453 einfo "Finished execution of stage 'WINDOWS_BINARIES'" ; eend 0
455 einfo "Finished execution of stage 'boot'" ; eend 0
458 elif [ "$ARCH" = powerpc ] ; then
459 ewarn 'Warning: formorer, it is your turn. :)'>&2
462 eerror 'Error: Unsupported ARCH, sorry. Want to support it? Contribute!' ; eend 1
465 if [ -f "$BUILD_OUTPUT"/live/grml.squashfs -a -z "$UPDATE" ] ; then
466 log "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs'"
467 ewarn "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs'" ; eend 0
469 [ -d "$BUILD_OUTPUT"/live ] || mkdir "$BUILD_OUTPUT"/live
470 mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/grml.squashfs -noappend
471 log "Finished execution of stage 'squashfs' [$(date)]"
472 einfo "Finished execution of stage 'squashfs'" ; eend 0
475 # create md5sum file:
476 ( cd $BUILD_OUTPUT/GRML &&
477 find .. -type f -not -name md5sums -not -name isolinux.bin -exec md5sum {} \; > md5sums )
480 # ISO_OUTPUT - mkisofs {{{
481 [ -n "$ISO_OUTPUT" ] || ISO_OUTPUT="$OUTPUT/grml_isos"
482 [ -n "$ISO_NAME" ] || ISO_NAME="${GRML_NAME}_${VERSION}.iso"
484 if [ "$BOOT_METHOD" = "isolinux" ] ; then
485 BOOT_FILE="boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat"
486 elif [ "$BOOT_METHOD" = "grub" ] ; then
487 BOOT_FILE="boot/grub/stage2_eltorito"
490 if [ -f "${ISO_OUTPUT}/${ISO_NAME}" -a -z "$UPDATE" ] ; then
491 log "$ISO_OUTPUT exists already, skipping stage 'iso build'"
492 ewarn "$ISO_OUTPUT exists already, skipping stage 'iso build'" ; eend 0
494 mkdir -p "$ISO_OUTPUT" || bailout 6 "Problem with creating $ISO_OUTPUT for stage 'iso build'"
496 cd "$BUILD_OUTPUT" &&
497 mkisofs -V "grml $VERSION" -publisher 'grml-live | grml.org' \
498 -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table \
500 -o "${ISO_OUTPUT}/${ISO_NAME}" . ; RC=$?
502 if [ "$RC" = 0 ] ; then
503 log "Finished execution of stage 'iso build' [$(date)]"
504 einfo "Finished execution of stage 'iso build'" ; eend 0
506 log "There was an error ($RC) executing stage 'iso build' [$(date)]"
507 eerror "There was an error executing stage 'iso build'" ; eend 1
514 [ -n "$start_seconds" ] && SECONDS="$[$(cut -d . -f 1 /proc/uptime)-$start_seconds]" || SECONDS="unknown"
515 einfo "Sucessfully finished execution of $PN [running ${SECONDS} seconds]" ; eend 0
516 log "Sucessfully finished execution of $PN [running ${SECONDS} seconds]"
520 ## END OF FILE #################################################################
521 # vim:foldmethod=marker ts=2 ft=sh ai expandtab tw=80 sw=3