Blame 0001-dracut-functions-write-to-HOME-dracut.log-instead-of.patch
|
Harald Hoyer |
cc91be |
From 52889453c13258b3fd036bbb7a8b37df132505e3 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
cc91be |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
cc91be |
Date: Tue, 8 Feb 2011 17:59:48 +0100
|
|
Harald Hoyer |
cc91be |
Subject: [PATCH] dracut-functions: write to $HOME/dracut.log instead of /tmp/dracut.log
|
|
Harald Hoyer |
cc91be |
|
|
Harald Hoyer |
cc91be |
---
|
|
Harald Hoyer |
cc91be |
dracut-functions | 3 +--
|
|
Harald Hoyer |
cc91be |
1 files changed, 1 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
cc91be |
|
|
Harald Hoyer |
cc91be |
diff --git a/dracut-functions b/dracut-functions
|
|
Harald Hoyer |
cc91be |
index e80a638..9ac0bba 100755
|
|
Harald Hoyer |
cc91be |
--- a/dracut-functions
|
|
Harald Hoyer |
cc91be |
+++ b/dracut-functions
|
|
Harald Hoyer |
cc91be |
@@ -65,8 +65,7 @@ is_func() {
|
|
Harald Hoyer |
cc91be |
if ! [[ $dracutlogfile ]]; then
|
|
Harald Hoyer |
cc91be |
[[ $dracutbasedir = /usr/share/dracut ]] && \
|
|
Harald Hoyer |
cc91be |
dracutlogfile=/var/log/dracut.log || \
|
|
Harald Hoyer |
cc91be |
- dracutlogfile=/tmp/dracut.log
|
|
Harald Hoyer |
cc91be |
-# [[ -w $dracutlogfile ]] || dracutlogfile=/tmp/dracut.log
|
|
Harald Hoyer |
cc91be |
+ dracutlogfile=$HOME/dracut.log
|
|
Harald Hoyer |
cc91be |
if [[ -w $dracutlogfile ]]; then
|
|
Harald Hoyer |
cc91be |
>"$dracutlogfile"
|
|
Harald Hoyer |
cc91be |
fi
|