diff options
author | Erik Troan <ewt@redhat.com> | 2000-04-19 23:10:04 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-04-19 23:10:04 +0000 |
commit | fcc596c9f54f5446756e88f412e5383553b9c13b (patch) | |
tree | 65e4ae57e5e44caf6468fe76383791f95deab0cf /iutil.py | |
parent | 95e4b1b5285c7d2b9ed26981afa483749337a84f (diff) | |
download | anaconda-fcc596c9f54f5446756e88f412e5383553b9c13b.tar.gz anaconda-fcc596c9f54f5446756e88f412e5383553b9c13b.tar.xz anaconda-fcc596c9f54f5446756e88f412e5383553b9c13b.zip |
chdir into chroot
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |