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>
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
-}
exit 1
fi
-start_logging $ROOT_DIR
-
# load config-specific values
. ./configs/${CONFIG_TYPE}/variables
. ./configs/${CONFIG_TYPE}/hooks