neil / rpms / anaconda

Forked from rpms/anaconda a year ago
Clone
fbcaed
From 277737af2d02a91f69ecc9167a3678235200d01a Mon Sep 17 00:00:00 2001
fbcaed
From: Chris Lumens <clumens@redhat.com>
fbcaed
Date: Thu, 5 Jun 2014 13:47:54 -0400
fbcaed
Subject: [PATCH 14/20] Make sure /var/log/anaconda gets copied under the right
fbcaed
 root.
fbcaed
fbcaed
Resolves: rhbz#1113535
fbcaed
Port of rpmostreepayload patches from master
fbcaed
commit 4cbde571d8d8897d92db8877351ecf6e39be2d97
fbcaed
---
fbcaed
 data/post-scripts/99-copy-logs.ks | 4 ++--
fbcaed
 1 file changed, 2 insertions(+), 2 deletions(-)
fbcaed
fbcaed
diff --git a/data/post-scripts/99-copy-logs.ks b/data/post-scripts/99-copy-logs.ks
fbcaed
index 1a60756..7e1263e 100644
fbcaed
--- a/data/post-scripts/99-copy-logs.ks
fbcaed
+++ b/data/post-scripts/99-copy-logs.ks
fbcaed
@@ -1,7 +1,7 @@
fbcaed
 # Note, this script log will not be copied to the installed system.
fbcaed
 %post --nochroot
fbcaed
 
fbcaed
-mkdir -p /mnt/sysimage/var/log/anaconda
fbcaed
+mkdir -p $ANA_INSTALL_PATH/var/log/anaconda
fbcaed
 [ -e /tmp/anaconda.log ] && cp /tmp/anaconda.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.log
fbcaed
 [ -e /tmp/syslog ] && cp /tmp/syslog $ANA_INSTALL_PATH/var/log/anaconda/syslog
fbcaed
 [ -e /tmp/X.log ] && cp /tmp/X.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.xlog
fbcaed
@@ -11,6 +11,6 @@ mkdir -p /mnt/sysimage/var/log/anaconda
fbcaed
 [ -e /tmp/ifcfg.log ] && cp /tmp/ifcfg.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.ifcfg.log
fbcaed
 [ -e /tmp/yum.log ] && cp /tmp/yum.log $ANA_INSTALL_PATH/var/log/anaconda/anaconda.yum.log
fbcaed
 cp /tmp/ks-script*.log $ANA_INSTALL_PATH/var/log/anaconda/
fbcaed
-chmod 0600 /mnt/sysimage/var/log/anaconda/*
fbcaed
+chmod 0600 $ANA_INSTALL_PATH/var/log/anaconda/*
fbcaed
 
fbcaed
 %end
fbcaed
-- 
fbcaed
1.9.3
fbcaed