Bug 856641

Summary: Live image does not swapoff --all before partitioning the system
Product: [openSUSE] openSUSE 13.1 Reporter: Andrey S <seldmail>
Component: YaST2Assignee: YaST Team <yast-internal>
Status: RESOLVED WONTFIX QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P4 - Low CC: aschnell
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 13.1   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: console log showing automatic swap activation

Description Andrey S 2013-12-21 09:21:49 UTC
How to reproduce:

1) Boot openSUSE 13.1 Live image
(Live KDE was used in my case, but I suppose it applies to Live GNOME as well)

2) Run the installation right from the Live image

3) Change partitioning during installation: move/remove swap partition

4) Start the installation

What happens:

Installation program cannot move/delete Swap partition, because it is mounted (this happens automatically, when Live image finds Swap partition in the system). As a result, an error message with error code pops-up and installation is aborted. At the moment I have neither screenshot, nor error code at hand.

What should happen:

First, installation program should unmount all Swap partitions used by Live image, and only then continue the installation. If I do this manually...
# swapoff --all
...and then start installation, the installer works without failure and system is partitioned correctly.

Additional information:

I have found this bug in openSUSE 12.3 Live image installer too.
Comment 1 Arvin Schnell 2015-07-08 10:33:02 UTC
I have done some tests on openSUSE 13.2 KDE Live and the issue is more
complex.

1. If there is a swap partition the expert partitioner of the live installer
   does not allow to delete it. OK, although it could ask to umount it - but
   see below.

2. The proposal does not delete an active swap partition. OK.

3. Using swapoff does not work reliable since the system activates the
   swap again (I suppose after a fclose in write-mode on the device), see
   attachment.

So likely the only thing YaST can do is to disallow any operations with
swap devices. Further research is needed.
Comment 2 Arvin Schnell 2015-07-08 10:33:42 UTC
Created attachment 640355 [details]
console log showing automatic swap activation
Comment 3 Arvin Schnell 2015-07-08 10:35:19 UTC
I added a card to the YaST trello task board so that the issue is prioritised
with the other tasks.
Comment 4 Tomáš Chvátal 2018-04-12 13:29:35 UTC
This version of openSUSE changed to end-of-life (EOL [1]) status. As such
it is no longer maintained, which means that it will not receive any
further security or bug fix updates.
As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
openSUSE, or consider the bug still valid, please feel free to reopen this
bug against that version, or open a new ticket.

Thank you for reporting this bug and we are sorry it could not be fixed
during the lifetime of the release.

[1] https://en.opensuse.org/Lifetime