dracut-functions: write to $HOME/dracut.log instead of /tmp/dracut.log
authorHarald Hoyer <harald@redhat.com>
Tue, 8 Feb 2011 16:59:48 +0000 (17:59 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 8 Feb 2011 16:59:48 +0000 (17:59 +0100)
dracut-functions

index e80a638..9ac0bba 100755 (executable)
@@ -65,8 +65,7 @@ is_func() {
 if ! [[ $dracutlogfile ]]; then
     [[ $dracutbasedir = /usr/share/dracut ]] && \
         dracutlogfile=/var/log/dracut.log || \
-        dracutlogfile=/tmp/dracut.log
-#    [[ -w $dracutlogfile ]] || dracutlogfile=/tmp/dracut.log
+        dracutlogfile=$HOME/dracut.log
     if [[ -w $dracutlogfile ]]; then
         >"$dracutlogfile"
     fi