diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-07-11 19:07:05 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-07-11 19:07:05 +0000 |
commit | fd01f3c32814635dd0a9a7ad9150d02b7add0716 (patch) | |
tree | 431b29abdd63e1b69c3f48006058dade963ff732 /iutil.py | |
parent | 0bea5181d9613216153f66be6887d53f46aba78d (diff) | |
download | anaconda-fd01f3c32814635dd0a9a7ad9150d02b7add0716.tar.gz anaconda-fd01f3c32814635dd0a9a7ad9150d02b7add0716.tar.xz anaconda-fd01f3c32814635dd0a9a7ad9150d02b7add0716.zip |
call bash as bash instead of sh. also, don't completely die if we fail to set the clock for some reason. real problems will be ferretted out by finding packages to upgrade
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -361,9 +361,12 @@ case "$SRM" in esac /sbin/hwclock $CLOCKFLAGS """) - execWithRedirect('/bin/sh', args, stdin = None, - stdout = None, stderr = None, - root = root) + try: + execWithRedirect('/bin/bash', args, stdin = None, + stdout = None, stderr = None, + root = root) + except RuntimeError: + log("Failed to set clock properly. Going to try to continue anyway.") def swapAmount(): f = open("/proc/meminfo", "r") |