Bug 7382

Summary: Mga3 alpha 2 - cannot boot into installed system, with encrypted root. (dual) because of cryptsetup not installed.
Product: Mageia Reporter: Dave Hodgins <davidwhodgins>
Component: Release (media or process)Assignee: Anne Nicolas <ennael1>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: release_blocker CC: callimera.42, eeeemail, ennael1, mageia, sysadmin-bugs, thierry.vignaud, tmb
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard: 3alpha2
Source RPM: bcd CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 5505    

Description Dave Hodgins 2012-09-07 00:22:00 CEST
After installing with an encrypted root filesytem using
the dual-cd, reboot fails, and drops to a dracut shell.

The dm-mod and dm-crypt modules are not available to
be loaded.

Looking at the filesystem, it appears the /etc/crypttab
was not copied to the /mnt/etc during installation, so
when dracut was run, it did not include the crypt modules
or functions, in the initrd.
Dave Hodgins 2012-09-07 00:28:54 CEST

CC: (none) => ennael1
Whiteboard: (none) => 3alpha1

Comment 1 Dave Hodgins 2012-09-07 00:36:53 CEST
Thinking about it some more, if it was copied to the root file system
during rpmdrake processing, it was then wiped out when I accepted
the default settings of formatting the / filesystem, in the next
step.

I'll retest, ensuring formatting in the step after diskdrake is
skipped.
Comment 2 Dave Hodgins 2012-09-07 00:54:41 CEST
Ignore comment 1.  At no point during the install does /crypttab
or /mnt/etc/crypttab exist.
Comment 3 Dave Hodgins 2012-09-07 02:01:58 CEST
This bug does not apply to the i586 dvd, where the /etc/crypttab
is created, in the encrypted root filesystem, and booting into
it does work.

So there is something different regarding the creation of the
crypttab, that is different between the dvd and the dual cd.
Manuel Hiebel 2012-09-07 10:42:09 CEST

CC: (none) => mageia, thierry.vignaud
Summary: Mga3 alpha 1 - cannot boot into installed system, with encrypted root. => Mga3 alpha 1 - cannot boot into installed system, with encrypted root. (dual)

Manuel Hiebel 2012-09-27 20:25:25 CEST

Blocks: (none) => 5505

Comment 4 Manuel Hiebel 2012-09-27 20:39:08 CEST
20:36 < leuhmanu> cryptsetup in indeed in the dvd
20:36 < leuhmanu> not in the dual
20:36 < \pub\bash0r> ah then that's the problem
20:36 < \pub\bash0r> without cryptsetup, no dracut crypt module

Priority: Normal => release_blocker
Source RPM: (none) => bcd

Manuel Hiebel 2012-09-27 20:41:29 CEST

Summary: Mga3 alpha 1 - cannot boot into installed system, with encrypted root. (dual) => Mga3 alpha 1 - cannot boot into installed system, with encrypted root. (dual) because of cryptsetup missing ?

Joe Shmoe 2012-09-27 20:43:07 CEST

CC: (none) => callimera.42

Thierry Vignaud 2012-09-28 09:52:34 CEST

CC: (none) => sysadmin-bugs
Component: Installer => Release (media or process)

Comment 5 Dave Hodgins 2012-10-01 21:20:40 CEST
Still present in the first build of Mageia 3 alpha 2.

Whiteboard: 3alpha1 => 3alpha2

Comment 6 Dave Hodgins 2012-10-03 05:27:18 CEST
Still doesn't work in second build.

/etc/cryptsetup now does get created and looks correct.

The cryptsetup package did not get installed in the new installation,
so dracut excludes it.
Dave Hodgins 2012-10-03 05:36:45 CEST

Summary: Mga3 alpha 1 - cannot boot into installed system, with encrypted root. (dual) because of cryptsetup missing ? => Mga3 alpha 2 - cannot boot into installed system, with encrypted root. (dual) because of cryptsetup not installed.

Thierry Vignaud 2012-10-03 13:08:24 CEST

CC: (none) => tmb
Assignee: bugsquad => ennael1

Comment 7 Dave Hodgins 2012-10-05 05:38:34 CEST
Still doesn't work in third build of Mageia 3 alpha 2.

Same as in build 2, where /etc/crypttab is ok, by the cryptsetup
package did not get installed into the newly installed system.

Note that this is a pre-existing encrypted filesystem, if that matters.
Comment 8 Manuel Hiebel 2012-10-05 14:50:21 CEST
s/not installed/not present in the iso/ or you have tested the dvd too ?
claire robinson 2012-10-05 15:07:48 CEST

CC: (none) => eeeemail

Comment 9 Dave Hodgins 2012-10-09 19:26:38 CEST
Not present in the iso.  With the dual-cd
$ tree -if|grep cryptsetup
./i586/media/core/libcryptsetup4-1.5.0-1.mga3.i586.rpm
./x86_64/media/core/lib64cryptsetup4-1.5.0-1.mga3.x86_64.rpm

With the x86_64-DVD
$ tree -if|grep cryptsetup
./x86_64/media/core/cryptsetup-1.5.0-1.mga3.x86_64.rpm
./x86_64/media/core/lib64cryptsetup4-1.5.0-1.mga3.x86_64.rpm
Comment 10 Anne Nicolas 2012-10-09 20:35:04 CEST
Sorry my bad a typo in package name... Please test last iso I just uploaded for tests (md5 updated on pad)
Comment 11 Dave Hodgins 2012-10-10 02:16:34 CEST
Working now.

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