dpolovinkin / rpms / anaconda

Forked from rpms/anaconda 3 years ago
Clone
Blob Blame History Raw
From 277737af2d02a91f69ecc9167a3678235200d01a Mon Sep 17 00:00:00 2001
From: Chris Lumens <clumens@redhat.com>
Date: Thu, 5 Jun 2014 13:47:54 -0400
Subject: [PATCH 14/20] Make sure /var/log/anaconda gets copied under the right
 root.

Resolves: rhbz#1113535
Port of rpmostreepayload patches from master
commit 4cbde571d8d8897d92db8877351ecf6e39be2d97
---
 data/post-scripts/99-copy-logs.ks | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/post-scripts/99-copy-logs.ks b/data/post-scripts/99-copy-logs.ks
index 1a60756..7e1263e 100644
--- a/data/post-scripts/99-copy-logs.ks
+++ b/data/post-scripts/99-copy-logs.ks
@@ -1,7 +1,7 @@
 # Note, this script log will not be copied to the installed system.
 %post --nochroot
 
-mkdir -p /mnt/sysimage/var/log/anaconda
+mkdir -p $ANA_INSTALL_PATH/var/log/anaconda
 [ -e /tmp/anaconda.log ] && cp /tmp/anaconda.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.log
 [ -e /tmp/syslog ] && cp /tmp/syslog $ANA_INSTALL_PATH/var/log/anaconda/syslog
 [ -e /tmp/X.log ] && cp /tmp/X.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.xlog
@@ -11,6 +11,6 @@ mkdir -p /mnt/sysimage/var/log/anaconda
 [ -e /tmp/ifcfg.log ] && cp /tmp/ifcfg.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.ifcfg.log
 [ -e /tmp/yum.log ] && cp /tmp/yum.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.yum.log
 cp /tmp/ks-script*.log $ANA_INSTALL_PATH/var/log/anaconda/
-chmod 0600 /mnt/sysimage/var/log/anaconda/*
+chmod 0600 $ANA_INSTALL_PATH/var/log/anaconda/*
 
 %end
-- 
1.9.3