[Pkg-libvirt-commits] [libguestfs] 21/116: customize: firstboot: fix Linux log output

Hilko Bengen bengen at moszumanska.debian.org
Wed Nov 26 22:04:52 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.29.10-1
in repository libguestfs.

commit 25cad1e62fa73e9cfd9a0e3d1d330165b19339ec
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Tue Nov 4 09:16:17 2014 +0100

    customize: firstboot: fix Linux log output
    
    Pass -a to each tee invocation, otherwise just the last one (so only for
    the last script executed) will appear in the log file.
---
 customize/firstboot.ml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/customize/firstboot.ml b/customize/firstboot.ml
index 89821f3..0b95708 100644
--- a/customize/firstboot.ml
+++ b/customize/firstboot.ml
@@ -50,8 +50,8 @@ d=%s/scripts
 d_done=%s/scripts-done
 logfile=~root/virt-sysprep-firstboot.log
 
-echo \"$0\" \"$@\" 2>&1 | tee $logfile
-echo \"Scripts dir: $d\" 2>&1 | tee $logfile
+echo \"$0\" \"$@\" 2>&1 | tee -a $logfile
+echo \"Scripts dir: $d\" 2>&1 | tee -a $logfile
 
 if test \"$1\" = \"start\"
 then
@@ -62,8 +62,8 @@ then
       # move the script to the 'scripts-done' directory, so it is not
       # executed again at the next boot
       mv $f $d_done
-      echo '=== Running' $f '===' 2>&1 | tee $logfile
-      $d_done/$(basename $f) 2>&1 | tee $logfile
+      echo '=== Running' $f '===' 2>&1 | tee -a $logfile
+      $d_done/$(basename $f) 2>&1 | tee -a $logfile
     fi
   done
   rm -f $d_done/*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list