summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-07-11 19:07:05 +0000
committerJeremy Katz <katzj@redhat.com>2002-07-11 19:07:05 +0000
commitfd01f3c32814635dd0a9a7ad9150d02b7add0716 (patch)
tree431b29abdd63e1b69c3f48006058dade963ff732 /iutil.py
parent0bea5181d9613216153f66be6887d53f46aba78d (diff)
downloadanaconda-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.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/iutil.py b/iutil.py
index 9e3d07221..c2ae65eb5 100644
--- a/iutil.py
+++ b/iutil.py
@@ -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")