Log mkisofs and squashfs cmdlines as well
authorMichael Prokop <devnull@localhost>
Sun, 25 Nov 2007 21:15:11 +0000 (22:15 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 25 Nov 2007 21:15:11 +0000 (22:15 +0100)
debian/changelog
grml-live

index ea6b746..484a0cf 100644 (file)
@@ -7,7 +7,8 @@ grml-live (0.0.10) unstable; urgency=low
     - LOGDIR is now /var/log/fai/$HOSTNAME/$FAI_ACTION_date+time
     - LOGDIR is /tmp/fai during an installation (not dirinstall), and
       will be copied to the path above at the end of an installation
-  * Log the executed FAI command line to /var/log/grml-live.log.
+  * Log the executed FAI, squashfs and mkisofs command lines to
+    /var/log/grml-live.log.
   * New option '-C <configuration_file>' for specifying a configuration
     file. Needs heavy testing though, because the files are updated
     during runtime it isn't as easy as expected to be. :-/
index c3e8b53..e525e89 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -531,6 +531,7 @@ if [ -f "$BUILD_OUTPUT"/live/grml.squashfs -a -z "$UPDATE" ] ; then
    ewarn "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs'" ; eend 0
 else
    [ -d "$BUILD_OUTPUT"/live ] || mkdir "$BUILD_OUTPUT"/live
+   log "mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/grml.squashfs -noappend"
    mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/grml.squashfs -noappend
    log "Finished execution of stage 'squashfs' [$(date)]"
    einfo "Finished execution of stage 'squashfs'" ; eend 0
@@ -558,6 +559,7 @@ else
    mkdir -p "$ISO_OUTPUT" || bailout 6 "Problem with creating $ISO_OUTPUT for stage 'iso build'"
    CURRENT_DIR=$(pwd)
    cd "$BUILD_OUTPUT" &&
+   log "mkisofs -V grml $VERSION -publisher 'grml-live | grml.org' -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b $BOOT_FILE -o ${ISO_OUTPUT}/${ISO_NAME} ."
    mkisofs -V "grml $VERSION" -publisher 'grml-live | grml.org' \
            -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table    \
            -b $BOOT_FILE \