summaryrefslogtreecommitdiff
path: root/src/initrd/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/initrd/common.sh')
-rw-r--r--src/initrd/common.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/initrd/common.sh b/src/initrd/common.sh
index 1471e7c..5c8ece3 100644
--- a/src/initrd/common.sh
+++ b/src/initrd/common.sh
@@ -2,17 +2,17 @@
2REQUIRED_MB=250 # minimum megabytes available to offer install 2REQUIRED_MB=250 # minimum megabytes available to offer install
3MENUFIFO=/menu.fifo 3MENUFIFO=/menu.fifo
4DEBUG=y 4DEBUG=y
5LOGBASE=/var/log 5SAMIZDAT_LOG_DIR=/run/initramfs/samizdat/log
6 6
7debug_log() 7debug_log()
8{ 8{
9 if [ -n "$DEBUG" ]; then 9 if [ -n "$DEBUG" ]; then
10 if [ -n "$1" ]; then 10 if [ -n "$1" ]; then
11 DEBUG_LOG=$LOGBASE/"$1".$$.log 11 DEBUG_LOG=$SAMIZDAT_LOG_DIR/"$1".$$.log
12 else 12 else
13 DEBUG_LOG=$LOGBASE/$(basename $0).$$.log 13 DEBUG_LOG=$SAMIZDAT_LOG_DIR/$(basename $0).$$.log
14 fi 14 fi
15 mkdir -p $LOGBASE 15 mkdir -p $SAMIZDAT_LOG_DIR
16 exec >>$DEBUG_LOG 2>&1 16 exec >>$DEBUG_LOG 2>&1
17 set -x 17 set -x
18 fi 18 fi