Bug 1097811

Summary: upgrade problem with encrypted disks
Product: [openSUSE] openSUSE Distribution Reporter: Ludwig Nussel <lnussel>
Component: Release NotesAssignee: Stefan Knorr <sknorr>
Status: RESOLVED FIXED QA Contact: Ludwig Nussel <lnussel>
Severity: Normal    
Priority: P1 - Urgent CC: bernd.speiser, fs, jlopez
Version: Leap 15.0   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ludwig Nussel 2018-06-15 09:29:31 UTC
See https://bugzilla.suse.com/show_bug.cgi?id=1094963#c35

Symptom:
Using the offline upgrade feature of the installation medium to upgrade Leap 42 with an encrypted data partition such as /home crashes YaST when selecting the previous installation.

Reason:
Encrypted data partitions are listed in /etc/fstab by device mapper name, eg. /dev/mapper/cr_home. In the installation environment YaST cannot relate that path to autodetected volumes (boo#1094963).

Solution:
Prior to upgrading, change /etc/fstab to mount the encrypted partitions by UUID instead of by path. For example if /etc/fstab contains

  /dev/mapper/cr_home /home xfs nofail 0 2

Use the following command to determine the UUID:

  # blkid|grep cr_home
  /dev/mapper/cr_home: UUID="12345678-1234-1234-1234-1234567890AB" TYPE="xfs"

Then change the in fstab line to

  UUID=12345678-1234-1234-1234-1234567890AB /home xfs nofail 0 2

After this modification of /etc/fstab yast can perform the upgrade without crashing.
Comment 1 José Iván López González 2018-06-20 09:05:30 UTC
(In reply to Ludwig Nussel from comment #0)
> 
> Then change the in fstab line to
> 
>   UUID=12345678-1234-1234-1234-1234567890AB /home xfs nofail 0 2
> 
> After this modification of /etc/fstab yast can perform the upgrade without
> crashing.

Only one note, using UUID or LABEL still could fail when no filesystem exists with that UUID/LABEL. Please, take a look to this comment [1].

[1] https://bugzilla.suse.com/show_bug.cgi?id=1094963#c43
Comment 2 Ludwig Nussel 2018-07-31 07:46:08 UTC
Stefan, what's the status there?
Comment 3 Stefan Knorr 2018-08-02 18:07:59 UTC
Sorry for the delay, I have added a note about this upgrade issue with:

https://github.com/openSUSE/release-notes-openSUSE/commit/34fc3c4918f1077e32822c4b8e59a6466cd06d6c
Comment 4 Swamp Workflow Management 2019-11-26 18:40:45 UTC
This is an autogenerated message for OBS integration:
This bug (1097811) was mentioned in
https://build.opensuse.org/request/show/751120 15.0 / release-notes-openSUSE
Comment 5 Swamp Workflow Management 2019-12-02 08:12:59 UTC
openSUSE-RU-2019:2609-1: An update that has 17 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1085628,1089061,1091103,1092953,1093098,1093398,1093982,1094834,1095111,1095597,1097811,1099004,1102191,1102987,1113694,1125487,1157816
CVE References: 
Sources used:
openSUSE Leap 15.0 (src):    release-notes-openSUSE-15.0.20191126-lp150.2.3.1