From c41bb0fbf01a1476c637ef685e9ff1c84387dd5b Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Fri, 19 Jun 2009 11:44:04 -0400 Subject: [PATCH] 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 --- functions.sh | 11 ----------- mkchroot.sh | 2 -- 2 files changed, 13 deletions(-) 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 -- 2.39.5