Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203496 - LUKS ROOT partition, device mapper is lost when initrd finishes
Summary: LUKS ROOT partition, device mapper is lost when initrd finishes
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-27 18:19 UTC by Sebastian Heyn
Modified: 2008-05-14 07:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Heyn 2007-12-27 18:19:25 UTC
I have created a luks partition I have installed gentoo on. When initrd boots I get prompted for system password, everything is fine up to here, then udev starts and when it tries to e2fsck it cannot find /dev/mapper/root. 

I can enter my root password anyway (as usual if a problem occurs) -> if I

#ls /dev/mapper -l   i will get 

total 0
lrwxrwxrwx 1 root root 16 Dec 27 18:57 control -> ../device-mapper

but /proc/mounts shows

rootfs / rootfs rw 0 0
/dev/mapper/root / ext2 ro 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
/dev/sda8 /mnt ext2 rw 0 0

(I have mountes sda8 by hand to save these outputs)

It seems as if the /dev/ gets overwritten somehow when initrd ends



Reproducible: Always

Steps to Reproduce:
1.install on luks partition
2.genkernel --luks --no-initrdmodules
3.boot

Actual Results:  
e2fsck fails, /dev/mapper/root is not existent

Expected Results:  
e2fsck should finish, system should keep booting
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2007-12-27 19:00:23 UTC
What version of genkernel are you using?
Comment 2 Sebastian Heyn 2007-12-27 22:07:24 UTC
(In reply to comment #1)
> What version of genkernel are you using?
> 

I use gentoo sources 2.6.22-r9 all neccessary modules are compiled into the kernel (aes etc) and encryption itself works fine.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2007-12-27 22:26:13 UTC
That's not what he asked. We need to know which version of *genkernel*, not the kernel version.
Comment 4 Sebastian Heyn 2007-12-28 08:14:29 UTC
(In reply to comment #3)
> That's not what he asked. We need to know which version of *genkernel*, not the
> kernel version.
> 

Sorry, I use genkernel-3.4.9_pre6


Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2007-12-28 11:16:59 UTC
Please try with _pre12.
Comment 6 Sebastian Heyn 2007-12-28 14:16:11 UTC
Exactly the same issue. 

For quicker solution, I can prepare a qemu img for download and a short description if it helps you
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2008-02-14 04:51:36 UTC
What does /dev/mapper/* look like on your running system?
Comment 8 Sebastian Heyn 2008-05-14 07:14:26 UTC
(In reply to comment #7)
> What does /dev/mapper/* look like on your running system?
> 
Well, it simply isnt there. I have been playing with this when I had time. The bug can be closed. It was my mistake. I forgot to install cryptsetup and device mapper  on the encrypted partition. SORRY SORRY SORRY