[Bug 779527] New: Live system installer blocks removal of swap partitions
https://bugzilla.novell.com/show_bug.cgi?id=779527 https://bugzilla.novell.com/show_bug.cgi?id=779527#c0 Summary: Live system installer blocks removal of swap partitions Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86 OS/Version: openSUSE 12.2 Status: NEW Severity: Minor Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: holgerar@googlemail.com QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0 When the installer is started from the live system, the user is not able to remove existing swap partitions during the installation because they are automatically used by the live system. Reproducible: Always Steps to Reproduce: On a system with an existing Linux swap partition, boot from a Live CD and start the installer. In the partitioning tool, try to remove the swap partition. Actual Results: The swap partition cannot be removed. Expected Results: The swap partition can be removed. The swap partition can obviously be deactivated manually using swapoff. However, only advanced users will know how to do that. Therefore, the installer should deactivate swap partitions automatically. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c1
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c2
Holger Arnold
Hi,Thank you for your report.could you please help to provide y2logs according to the following URL? http://en.opensuse.org/openSUSE:Bugreport_YaST
No, because I did not install my system that way, sorry. But for what purpose do you need log files? It is already clear what is happening, isn't it? The partitioning program (correctly) prevents active swap partitions from being modified. But the installer should have deactivated all swap partitions used by the live system before running the partitioning interface. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c
Jiaying ren
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c3
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c4
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c5
--- Comment #5 from Holger Arnold
The situation that installation is started from a live cd is not specially covered currently.
Normal installation do not have swap activated except for two reasons: 1) linuxrc activated it before starting yast because of low memory 2) the user itself activated it for some reason
I don't know for sure, but I think the installer (on the live CD) also uses existing swap partitions when started directly from the boot menu.
Deactivating all swap on start of partitioner seems to be too harsh. It potentially needs a long time and could make low mem systems hang almost forever. Mostly people will reuse their swap or create an additional swap in unused space (to be able to suspend multiple systems independently).
So I would assume the case of removal of a swap partition is quite rare.
On what data do you base your opinion? At least for me, this is not a rare use case. I think that the user should be able to change his disk layout exactly as he wants it, and active swap partitions prevent this. There is no point in having a powerful partitioning program, such as Yast's, and not being able to use it properly. Note that the same problem occurs with automatic disk partitioning. For example, what about a (novice) user that has an existing swap partition that is too small for suspending to disk? The partitioning algorithm would reuse the swap partition and use all remaining disk space for / and /home. The result would be that the user can't suspend his system! I think the best solution would be to ask the user when a swap partition has to be disabled to create a -- automatically or manually -- generated disk layout. The wording can be made beginner-friendly, such as: "If you do not know what this means, click 'Yes'." -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c6
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c7
--- Comment #7 from Holger Arnold
I added now code that does a swapoff when a swap partition is removed in live installer mode.
Great, thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c8
--- Comment #8 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=779527
https://bugzilla.novell.com/show_bug.cgi?id=779527#c9
--- Comment #9 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com