summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-04-19 23:10:04 +0000
committerErik Troan <ewt@redhat.com>2000-04-19 23:10:04 +0000
commitfcc596c9f54f5446756e88f412e5383553b9c13b (patch)
tree65e4ae57e5e44caf6468fe76383791f95deab0cf /iutil.py
parent95e4b1b5285c7d2b9ed26981afa483749337a84f (diff)
downloadanaconda-fcc596c9f54f5446756e88f412e5383553b9c13b.tar.gz
anaconda-fcc596c9f54f5446756e88f412e5383553b9c13b.tar.xz
anaconda-fcc596c9f54f5446756e88f412e5383553b9c13b.zip
chdir into chroot
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/iutil.py b/iutil.py
index b64edbc59..f098bcc2a 100644
--- a/iutil.py
+++ b/iutil.py
@@ -42,7 +42,9 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2,
childpid = os.fork()
if (not childpid):
- if (root and root != '/'): isys.chroot (root)
+ if (root and root != '/'):
+ isys.chroot (root)
+ os.chdir("/")
if ignoreTermSigs:
signal.signal(signal.SIGTSTP, signal.SIG_IGN)