Bug 188

Summary: Installer cannot detect existing lvm on top of encrypted partition
Product: Mageia Reporter: Rémy CLOUARD (shikamaru) <shikamaru>
Component: InstallerAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: pterjan, thierry.vignaud
Version: CauldronKeywords: PATCH
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: drakxtools-13.43-1.mga1.src.rpm CVE:
Status comment:
Attachments: screenshot of partitioning tool with encrypted volumes
patch to help detecting lvm on luks

Description Rémy CLOUARD (shikamaru) 2011-02-26 14:23:09 CET
Description of problem:
During the partitioning step, lvm on top of encrypted volumes are not detected, because it assumes a standard partition is âbehindâ the encrypted volume.

Trying to workaround this issue by manually opening encrypted volumes and running lvm commands to make these volume appear is of no help either, diskdrake does not take them into account, even if one attempts to reload the partition table

Version-Release number of selected component (if applicable):
13.43-1.mga1

How reproducible:
always

Steps to Reproduce:
1. install a distribution with root on top of lvm on top of LUKS
2. boot the mageia iso
3. the partitioning tool does not detect lvm pv

it would be nice if we could have the opportunity to do some steps manually and have diskdrake take them into account, just like what you can do with archlinux install tool

Reproducible: 

Steps to Reproduce:
Comment 1 Rémy CLOUARD (shikamaru) 2011-02-26 14:30:32 CET
Created attachment 38 [details]
screenshot of partitioning tool with encrypted volumes

as you can see, diskdrake assumes that a standard ext4 partition is lying behind the LUKS
Comment 2 Rémy CLOUARD (shikamaru) 2011-02-26 15:25:41 CET
Created attachment 40 [details]
patch to help detecting lvm on luks

Here is a patch that allows lvm on luks to be properly detected, works for me in diskdrake, but review would be welcome, as it might be suboptimal.

I didnât remove the lvm detection before because one can decide to only have one partition encrypted on top of lvm (like encrypted home in a logical volume) or to have the whole lvm on top of luks

Regards,
Rémy CLOUARD (shikamaru) 2011-02-26 15:28:52 CET

CC: (none) => thierry.vignaud

Ahmad Samir 2011-03-14 02:59:23 CET

CC: (none) => pterjan

Comment 3 Rémy CLOUARD (shikamaru) 2011-03-19 12:54:13 CET
still valid with alpha2
Comment 4 Rémy CLOUARD (shikamaru) 2011-03-26 14:54:25 CET
I just commited it to svn
Comment 5 Rémy CLOUARD (shikamaru) 2011-04-24 10:06:17 CEST
seems like itâs not fixed in beta 1 :(
Comment 6 Thierry Vignaud 2011-08-01 15:07:40 CEST
b/c there weren't any release of d-i-stage2 between 2011-02-18 & 2011-05-06
Btw, next time please describe your change in install/NEWS ...

Keywords: (none) => PATCH
Status: NEW => RESOLVED
Resolution: (none) => FIXED