diff options
author | Andrew Cady <d@jerkface.net> | 2017-03-26 22:20:18 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2017-03-26 22:20:18 -0400 |
commit | 3af02e032f39ba16c3f8de2e606abec317d99354 (patch) | |
tree | 6c4717162fe8e16e31ce92baaaa3ce09a725de09 /src/initrd/common.sh | |
parent | c470b6ca6075b33c2c696ca34070671ee32a8d76 (diff) |
fully enable booting from installed native partition
Diffstat (limited to 'src/initrd/common.sh')
-rw-r--r-- | src/initrd/common.sh | 8 |
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 @@ | |||
2 | REQUIRED_MB=250 # minimum megabytes available to offer install | 2 | REQUIRED_MB=250 # minimum megabytes available to offer install |
3 | MENUFIFO=/menu.fifo | 3 | MENUFIFO=/menu.fifo |
4 | DEBUG=y | 4 | DEBUG=y |
5 | LOGBASE=/var/log | 5 | SAMIZDAT_LOG_DIR=/run/initramfs/samizdat/log |
6 | 6 | ||
7 | debug_log() | 7 | debug_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 |