Bug 3749 - cannot use luks encrypted partitions during the install
Summary: cannot use luks encrypted partitions during the install
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO, Triaged
: 3513 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-14 23:00 CET by Yves Gaël Chény
Modified: 2012-05-13 15:15 CEST (History)
9 users (show)

See Also:
Source RPM: drakx-installer-stage2
CVE:
Status comment:


Attachments
Patch for /usr/lib/libDrakX/fs/dmcrypt.pm (623 bytes, patch)
2012-02-26 03:16 CET, Dave Hodgins
Details | Diff

Description Yves Gaël Chény 2011-12-14 23:00:33 CET
Description of problem:

I have tried to re-use existing luks partion and/or create new luks partition during the install, I get a "cryptsetup failed" popup.

The console message isn't more explicative.

Version-Release number of selected component (if applicable):
Last iso Mageia Cauldron dvd 64 bit

How reproducible:
Install and try to create and use a luks
Comment 1 Yves Gaël Chény 2011-12-14 23:02:21 CET
after the install, i can access the existing luks partition after the install cryptosetup. So it's not an unsupported format ;)
Comment 2 Manuel Hiebel 2011-12-14 23:48:06 CET
Hi, thanks for reporting this bug.

maybe duplicate/related to bug 3482
Assigned to the packages maintainers.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
CC: (none) => thierry.vignaud
Assignee: bugsquad => pterjan
Source RPM: (none) => drakx-installer-stage2

Comment 3 Thierry Vignaud 2011-12-15 09:53:52 CET
Can you attach your /root/drakx/report.gz please?

Keywords: (none) => NEEDINFO

Comment 4 Jim Darby 2011-12-20 18:01:47 CET
I can confirm this one as well. It isn't fixed in Mageia 2 alpha 2 either.

CC: (none) => uberscubajim

Comment 5 Jim Darby 2011-12-20 18:18:49 CET
Oh, hang on. It isn't fixed if you install from the live CD but the network install seems to work OK.....
Comment 6 Jim Darby 2011-12-20 18:21:49 CET
*** Bug 3513 has been marked as a duplicate of this bug. ***
Comment 7 Marja Van Waes 2012-01-21 14:28:08 CET
Can users experiencing this problem who used drakx-installer (not LiveCD), please attach /root/drakx/report.gz as asked for in comment 3



(In reply to comment #5)
> Oh, hang on. It isn't fixed if you install from the live CD but the network
> install seems to work OK.....

@ Blino

Is this supposed to work when installing from the liveCD, too?
If it is, maybe Jim's bug 3513 can be reopened and used

CC: (none) => mageia, marja11

Comment 8 Dick Gevers 2012-01-21 19:59:13 CET
It can't work with LiveCD because cryptsetup is not in the <LiveCD Name>.lst file.

CC: (none) => dvgevers

Comment 9 Manuel Hiebel 2012-01-23 01:04:07 CET
please if it's another issue, open another bug.
Comment 10 Marja Van Waes 2012-02-08 11:34:45 CET
@ Yves

Please attach the file Thierry asked for in comment 3, or, when trying to reproduce this problem, plug in a usb stick and switch to console 2 (by pressing 'Ctrl-Alt-F2') during installation, and type: 'bug' then press Enter. It will put report.bug on the key.
Comment 11 Thierry Vignaud 2012-02-09 11:47:16 CET
For the record, it works for me
Comment 12 Oliver Burger 2012-02-20 13:56:54 CET
Status from beta1 pre release test:
Creating a new encrypted partition at install time results in the described "cryptsetup failed" popup.
Using existing encrypted partitions does work.

CC: (none) => oliver.bgr

Comment 13 Jim Darby 2012-02-23 19:14:13 CET
I can confirm Oliver's comment. This was when installing from the Mageia-2-beta1-i586-DVD.iso image.
Morgan Leijström 2012-02-24 01:40:38 CET

CC: (none) => fri

Comment 14 Dave Hodgins 2012-02-24 04:45:19 CET
This was caused by a change implemented at my request in bug 3092.

The xts kernel module is not available in the installer's kernel.
During a normal usage of an  xts encrypted filesystem, I also
see the cryptd module.

Both modules should be added to the kernel in the installer.

CC: (none) => davidwhodgins

Comment 15 Thierry Vignaud 2012-02-24 09:47:21 CET
Fixed.
boot.iso is being regenerated

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

Comment 16 Jim Darby 2012-02-24 13:24:46 CET
I'm able to test as soon as the new boot.iso is available.
Comment 17 Jim Darby 2012-02-24 13:54:26 CET
OK, I've tried it with the boot.iso dated 24-Feb-2012 with the SHA1 value that starts bc17b44 and I still get the "cryptsetup failed" error message.

Any ideas?
Comment 18 Dave Hodgins 2012-02-25 00:36:26 CET
(In reply to comment #15)
> Fixed.
> boot.iso is being regenerated

Wouldn't it be the drakx-installer-stage2 that needs to have
the kernel modules added in the mdkinst.sqfs file?
Comment 19 Marja Van Waes 2012-02-25 08:36:01 CET
(In reply to comment #18)
> (In reply to comment #15)
> > Fixed.
> > boot.iso is being regenerated
> 
> Wouldn't it be the drakx-installer-stage2 that needs to have
> the kernel modules added in the mdkinst.sqfs file?

reopening and changing assignee to Thierry, since he was working on this bug.


there is a new drakx-installer-stage2 too, that got pushed later (16 hrs ago) although I only read about "include more HID drivers (mga#4129)"

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)
Assignee: pterjan => thierry.vignaud

Comment 20 Thierry Vignaud 2012-02-25 14:06:32 CET
Stage2 has already been rebuild:
-rwxr-xr-x 1 root root 47968256 Feb 24 16:43 mdkinst.sqfs*

You need to retest
Comment 21 Dave Hodgins 2012-02-26 03:16:12 CET
Created attachment 1639 [details]
Patch for /usr/lib/libDrakX/fs/dmcrypt.pm

This is strange.  It fails until I manually run "modprobe xts".  I've been
using xts mode for years, and didn't even know that xts mode used a
separate kernel module.  I've never had to modprobe it before.

Anywahy here's a patch to add xts to the list of modules loaded for
rpmdrake when encrypting a filesystem.
Comment 22 Thierry Vignaud 2012-02-26 04:02:53 CET
Applied
Comment 23 Dave Hodgins 2012-02-28 22:26:14 CET
drakxtools-backend needs to be pushed, and then
drakx-installer-stage2 rebuilt so we can finish
testing.
Comment 24 Thierry Vignaud 2012-02-29 08:34:51 CET
installer is already up to date
Comment 25 Thierry Vignaud 2012-03-10 18:23:10 CET
Closing

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 26 Y.LE_NY 2012-04-28 21:08:48 CEST
Sorry, I need to reopen because it is not fixed.
I have the same problem with Mageia 2 Beta 3.

You can find the detailed log for ALT+F3 output here :
https://bugs.mageia.org/show_bug.cgi?id=5661

Status: RESOLVED => REOPENED
CC: (none) => yleny
Resolution: FIXED => (none)

Y.LE_NY 2012-04-28 21:09:07 CEST

Severity: normal => critical

Comment 27 Manuel Hiebel 2012-04-28 22:32:25 CEST
why have you reopen this bug if you have make another one ?

the apposite question is also true
Comment 28 Y.LE_NY 2012-04-29 14:03:09 CEST
Hello Manuel

>why have you reopen this bug if you have make another one ?
Because I don't know if the mageia developpers want to work with this ticket or the new one that I have opened.
Ok, I will close this ticket and stay tuned with the other ticket.

Status: REOPENED => RESOLVED
Resolution: (none) => OLD

Comment 29 Thierry Vignaud 2012-04-29 14:20:46 CEST
This one was fixed.

Status: RESOLVED => VERIFIED
Resolution: OLD => FIXED

Comment 30 Morgan Leijström 2012-05-13 14:11:11 CEST
Thank you :)
Confirming it now works to open up and use an encrypted LVM.
However, there is a somewhat confusing delay, bug 5886.
Comment 31 Thierry Vignaud 2012-05-13 15:15:07 CEST
Closing

Status: VERIFIED => RESOLVED


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