Description of problem:
Anaconda displays the same warning twice then crashes with a
RuntimeError ("Returning partitions to state prior to edit failed")
when trying to edit partitions on a drive where the /boot partition
isn't towards the start of the disk.
Drive is a 60GB ide drive with a 20GB NTFS partition (hda1). Upon
selecting Automatic Partitioning then click Next I get a warning
saying /boot should be closer to the start of the disk. No worries.
So in Disk Druid I delete /boot. But then I want to decrease the size
of /. I get a crash after doing this. Details below.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Select Automatic Partioning.
2. Click OK to warning about /boot.
3. Delete the /boot partition in Disk Druid.
4. Edit the / partition, changing the size to "Fill up to: 5000MB"
5. Click OK. Warning box appears about the placement of the boot
partition with options "Modify Partition" or "Continue".
6. Click "Modify Partition".
7. The same warning box appears again.
8. Click "Modify Partition".
9. Anaconda crashes with a RuntimeError, here's the trackback:
File "/usr/lib/anaconda/iw/partition_gui.py", line 1033 in editCb
File "/usr/lib/anaconda/iw/partition_gui.py", line 1096 in
raise RuntimeError, ("Returning partitions to state "
RuntimeError: Returning partitions to state prior to edit failed
Also the "Modify Partition" and "Continue" buttons seem to do exactly
the same thing (i.e. allow the operation). (That is when they
work...) The nomenclature is rather obscure. Does Continue mean
continue the operation or continue as it was previously? Perhaps that
deserves another bug?
Is this reproducible? I can't get it to happen in a quick test
Yes, well twice at least. I will try again today following the exact
commands that I posted here and report back.
Yep, oops I did it again. There were a few steps I missed out from the
Steps to Reproduce above:
(after selecting Auto Partitioning)
1a. Select "Remove all Linux partitions on this system"
(after deleting /boot)
3a. Click "Modify Partition" not "Continue" to the warning "Boot
partition may not meet booting constraints for your arch."
Also there's a workaround: try and modify the size of the / partition,
when it gives a warning click "Continue". The size reverts and doesn't
change, but it stops bothering you so you can go back and change it again.
BTW I just reproduced it in FC1 install too. Traceback the same
except the line numbers were 1048 and 1112 respectively.
Chris fixed this in CVS a week or two ago.