From: Andres Salomon Date: Fri, 19 Jun 2009 15:44:04 +0000 (-0400) Subject: mkchroot: drop the logging function X-Git-Tag: v0.6~38 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?p=xodist;a=commitdiff_plain;h=c41bb0fbf01a1476c637ef685e9ff1c84387dd5b mkchroot: drop the logging function 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 --- diff --git a/functions.sh b/functions.sh index 919c766..7318230 100644 --- a/functions.sh +++ b/functions.sh @@ -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 -} diff --git a/mkchroot.sh b/mkchroot.sh index 83f51d4..13dcc8c 100755 --- a/mkchroot.sh +++ b/mkchroot.sh @@ -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