Bug 9837

Summary: Trying to create a encrypted LVM partition results in message "Undefined subroutine &lvm::detect_during_install called."
Product: Mageia Reporter: PC LX <mageia>
Component: InstallerAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: release_blocker CC: mageia, mageia, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Bug Depends on: 5661, 9993    
Bug Blocks:    
Attachments: Video screen cast: Mageia install and creating a encrypted LVM partition.

Description PC LX 2013-04-23 16:23:00 CEST
I think I've found an issue with the partitioning tool in the Mageia 3 RC (Mageia-3-RC-Boot-nonfree-x86_64-CD.iso).

Description:

When trying to create a encrypted LVM partition a dialog window with the message "Undefined subroutine &lvm::detect_during_install called." is displayed and a encrypted ext4 partition is created, instead of a encrypted LVM partition as it should be.


Actual Results:

Encrypted ext4 partition is created.


Expected Results:

Encrypted LVM partition is created.


Steps to Reproduce:

Please see attached video with a screen cast showing the steps that lead to the issue.
Always reproducible, at least in the several times I have tried.


Build Date & Hardware:

I have installed in a VirtualBox VM (to record the screen cast) but the issue also happens directly on the hardware.

$ rpm -q VirtualBox-4.2
VirtualBox-4.2-4.2.12_84980_mdv2010.0-1


Additional Information / Workaround:

It is possible to create a encrypted LVM partition by first creating a encrypted ext4 partition (other file systems may also work) and then, in advanced mode, changing the type to LVM.


Regards.
Comment 1 Sander Lepik 2013-04-23 16:26:00 CEST
Colin, should it be fixed in RC or did it get fixed after RC was released?

CC: (none) => mageia, sander.lepik

Comment 2 PC LX 2013-04-23 16:46:09 CEST
Created attachment 3792 [details]
Video screen cast: Mageia install and creating a encrypted LVM partition.
Comment 3 Colin Guthrie 2013-04-23 17:18:29 CEST
@Sander, this actually looks like a problem we introduced when fixing bug #5661.

@PC LX: Awesome video. Very helpful.

I'll look into why this is a problem.

Priority: Normal => release_blocker
CC: (none) => thierry.vignaud

Comment 4 Colin Guthrie 2013-04-23 17:29:56 CEST
Hmm, crap, it seems I added it in r7963.

Thierry, can you see what's wrong with that? Is it just missing a "use lvm;" at the top of perl-install/diskdrake/interactive.pm?  It worked in my tests... but those tests already included an existing LVM volume so I guess the module was loaded via other means under those circumstances.
Comment 5 Thierry Vignaud 2013-04-23 17:31:04 CEST
Fixed in SVN

Status: NEW => RESOLVED
Depends on: (none) => 5661
Resolution: (none) => FIXED

Colin Guthrie 2013-05-05 20:55:37 CEST

Depends on: (none) => 9993