Bug 188 - Installer cannot detect existing lvm on top of encrypted partition
Summary: Installer cannot detect existing lvm on top of encrypted partition
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2011-02-26 14:23 CET by Rémy CLOUARD (shikamaru)
Modified: 2011-08-01 15:07 CEST (History)
2 users (show)

See Also:
Source RPM: drakxtools-13.43-1.mga1.src.rpm
CVE:
Status comment:


Attachments
screenshot of partitioning tool with encrypted volumes (549.70 KB, image/jpeg)
2011-02-26 14:30 CET, Rémy CLOUARD (shikamaru)
Details
patch to help detecting lvm on luks (401 bytes, patch)
2011-02-26 15:25 CET, Rémy CLOUARD (shikamaru)
Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.