diff options
author | David Lehman <dlehman@redhat.com> | 2012-08-06 09:53:46 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2012-08-13 11:54:04 -0500 |
commit | 03a3daa8e493e25bec3cf5ef1a7912396d19c15f (patch) | |
tree | 50d5462f977509b2b6b6eeefd914a995b1cb6594 /pyanaconda/bootloader.py | |
parent | bd81a1b89915089bc2047a65a5d66272d79a1534 (diff) | |
download | anaconda-03a3daa8e493e25bec3cf5ef1a7912396d19c15f.tar.gz anaconda-03a3daa8e493e25bec3cf5ef1a7912396d19c15f.tar.xz anaconda-03a3daa8e493e25bec3cf5ef1a7912396d19c15f.zip |
Make it possible to call setUpBootLoader safely at any time.
Diffstat (limited to 'pyanaconda/bootloader.py')
-rw-r--r-- | pyanaconda/bootloader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py index 4329b34d2..04b4066d9 100644 --- a/pyanaconda/bootloader.py +++ b/pyanaconda/bootloader.py @@ -620,6 +620,7 @@ class BootLoader(object): return valid def set_stage1_device(self, devices): + self.stage1_device = None if not self.stage1_disk: raise BootLoaderError("need stage1 disk to set stage1 device") @@ -627,7 +628,6 @@ class BootLoader(object): self.stage1_device = self.stage2_device return - self.stage1_device = None for device in devices: if self.stage1_disk not in device.disks: continue |