summaryrefslogtreecommitdiff
path: root/src/initrd/common.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2017-03-26 22:20:18 -0400
committerAndrew Cady <d@jerkface.net>2017-03-26 22:20:18 -0400
commit3af02e032f39ba16c3f8de2e606abec317d99354 (patch)
tree6c4717162fe8e16e31ce92baaaa3ce09a725de09 /src/initrd/common.sh
parentc470b6ca6075b33c2c696ca34070671ee32a8d76 (diff)
fully enable booting from installed native partition
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