Bug 1174030

Summary: Leap 15.1-15.2 Upgrade Attempt Failed with Sudden r/o; 15.2 Fresh Install Failed with Imported home and User (Home Folder Reset)
Product: [openSUSE] openSUSE Distribution Reporter: Yon Yonson <Junkmail_catcher>
Component: Upgrade ProblemsAssignee: E-mail List <yast2-maintainers>
Status: RESOLVED NORESPONSE QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P3 - Medium CC: igonzalezsosa, jochenbl, Junkmail_catcher, schubi
Version: Leap 15.2Flags: igonzalezsosa: needinfo? (Junkmail_catcher)
Target Milestone: Leap 15.2   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Yon Yonson 2020-07-11 04:41:49 UTC
Hello,
I've also posted this at the Opensuse Forum.

Of note: my /home is on a separate XFS partition of the same drive, and I ran updates and rebooted before attempting the upgrade.

I tried upgrading Leap from 15.1 to 15.2 via USB since all I have is Wifi atm (so ctrl+alt+f2 -> root login -> 'init 3' -> 'zypper dup --download-in-advance' is a fail due to losing Wifi in runlevel 3). So I disabled other repos in advance and upgraded Opensuse repos to 15.2.
During the install, it reached approximately 85 - 90% completion, and then started throwing read-only errors during the attempt to install xorg-x11-xvnc, and all packages afterwards. So at this point the upgrade was damaged.
I force-rebooted and selected to boot from the snapper snapshot I made prior to the upgrade. Great - it booted... except 'su snapper rollback' resulted in an error to the effect of, "Couldn't create snapshot ((error 30) - read-only filesystem)". So snapper couldn't make a backup copy of the current ro filesystem and, consequently, couldn't set the current ro image to rw. So, I tried booting from the installation USB in recovery mode and mounting the partition as rw so I could check the /etc/fstab, but received "wrong fs type, bad option, bad superblock on /dev/sda2". Looking it up, a Suse document recommended btrfs rescue zero-log, which succeeded only in destroying it further; so much so that the ro snapshots would not even mount.

Now...
I have reinstalled from the ground-up, preserving my home partition, in the following manner:

-During partitioning, I selected Advanced partitioning and selected:
1. Reformat the btrfs system partition, set mount to /, enabled snapshots.
2. Reformat the swap partition, mount as swap
3. Do Not format home partition, mount as /home

-Then:
At user creation, I selected to import a user and selected my username that appeared below.

Installed, reboot, and... my home folder appears to be completely reset; everything - but the stock folders - is gone, and all of my wallpapers in /home/(myname)/.local/share/wallpapers are also missing.
Comment 1 Imobach Gonzalez Sosa 2020-10-09 08:18:14 UTC
Hi Yon,

I am sorry to hear that. Please, attach the logs so we can inspect what happened during installation. See https://en.opensuse.org/openSUSE:Report_a_YaST_bug#Attachments_-_y2logs.2C_hwinfo_etc. for further information about how to get the logs (basically, use 'save_y2logs' and attach the result here).
Comment 2 Stefan Schubert 2020-11-11 14:15:21 UTC
Ping :-)
Comment 3 Stefan Schubert 2020-11-27 13:10:11 UTC
Feel free to reopen the bug if it is still relevant and you can provide the requested information.