summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-09-10 12:24:01 -0400
committerJeremy Katz <katzj@redhat.com>2008-09-10 13:01:23 -0400
commitb72bdfbf1e87cb355cbc78e5583572309951e66e (patch)
treef7b72397f3cb24f0f7e3fdda55ca7cf3ac19dfd4
parentc50774001649be700701198d5e0a6c4236a3120a (diff)
downloadanaconda-b72bdfbf1e87cb355cbc78e5583572309951e66e.tar.gz
anaconda-b72bdfbf1e87cb355cbc78e5583572309951e66e.tar.xz
anaconda-b72bdfbf1e87cb355cbc78e5583572309951e66e.zip
Don't traceback at the end of live installs
Live installs don't have a stage2, so don't traceback looking at the attr
-rw-r--r--installmethod.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/installmethod.py b/installmethod.py
index b69225bc0..ce1dd7f99 100644
--- a/installmethod.py
+++ b/installmethod.py
@@ -37,7 +37,7 @@ def doMethodComplete(anaconda):
return anaconda.mediaDevice
# If we booted off the boot.iso instead of disc 1, eject that as well.
- if anaconda.stage2.startswith("cdrom://"):
+ if anaconda.stage2 and anaconda.stage2.startswith("cdrom://"):
dev = anaconda.stage2[8:].split(':')[0]
return dev