Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   reset bootloader.stage1_device upon repeated autopartitioning. (http://www.linux-archive.org/debian-user/581515-reset-bootloader-stage1_device-upon-repeated-autopartitioning.html)

Ales Kozumplik 09-29-2011 09:15 AM

reset bootloader.stage1_device upon repeated autopartitioning.
 
Otherwise the algorithm doesn't see it as necessary to create a biosboot
partition.

Resolves: rhbz#741587
---
pyanaconda/storage/partitioning.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index 537b38f..9e3a5f2 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -251,6 +251,7 @@ def doAutoPartition(anaconda):
# whole disk format replaced by a disklabel. Make sure to keep any
# previous boot order selection from clearpart_gui or kickstart
anaconda.bootloader.clear_drive_list()
+ anaconda.bootloader.stage1_device = None

disks = _getCandidateDisks(anaconda.storage)
devs = _schedulePVs(anaconda.storage, disks)
@@ -981,7 +982,7 @@ def doPartitioning(storage, bootloader=None):

updateExtendedPartitions(storage, disks)

- # make sure the stage1_device gets updated
+ # make sure the stage1_device gets updated during sanityCheck
if storage.anaconda:
storage.anaconda.bootloader.stage1_device = None

--
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 10:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.