]> spindle.queued.net Git - xodist/commitdiff
mkchroot: drop the logging function
authorAndres Salomon <dilinger@collabora.co.uk>
Fri, 19 Jun 2009 15:44:04 +0000 (11:44 -0400)
committerAndres Salomon <dilinger@collabora.co.uk>
Fri, 19 Jun 2009 15:44:04 +0000 (11:44 -0400)
It makes more sense to log the entire thing (mkchroot + mkext3, for example);
plus, for some reason the trap function is causing the script to die.  I'm not
sure why that is, but the effort to debug it isn't worth it for me.

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
functions.sh
mkchroot.sh

index 919c7663640720b2991eb9db1410fa209640f420..7318230553a68a1ec7ce3ecbf8bb429ac8a8424f 100644 (file)
@@ -27,14 +27,3 @@ check_for_cmds()
 
        return 0
 }
-
-start_logging()
-{
-    logpipe="$1".pipe
-    trap "rm -f $logpipe" 0
-    rm -f $logpipe
-    mknod $logpipe p
-    tee "$1".log <$logpipe &
-    trap "kill $!; rm -f $logpipe" 0
-    exec >$logpipe 2>&1
-}
index 83f51d476b4a78ed86cda37ff22dac32bb2718e7..13dcc8ca3ed33d1006de7da655e1dbc2c8fce59e 100755 (executable)
@@ -86,8 +86,6 @@ if [ "$UID" != "0" ]; then
        exit 1
 fi
 
-start_logging $ROOT_DIR
-
 # load config-specific values
 . ./configs/${CONFIG_TYPE}/variables
 . ./configs/${CONFIG_TYPE}/hooks