Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352047 - sys-kernel/genkernel initrd - fsck fails completely if first target is missing (genkernel, crypt-root)
Summary: sys-kernel/genkernel initrd - fsck fails completely if first target is missin...
Status: RESOLVED DUPLICATE of bug 344407
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 16:21 UTC by bugzilla
Modified: 2011-01-20 18:32 UTC (History)
1 user (show)

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 bugzilla 2011-01-18 16:21:09 UTC
(Please excuse my clumsy description)

The genkernel initrd sets up the crypto-root and mounts /.

After the handover from the genkernel initrd, there is no file /dev/mapper/root.
All the other filesystems set up in /etc/conf.d/dmcrypt have there /dev/mapper entries as symlinks to /etc/dm-*

In /etc/fstab, / is referenced as /dev/mapper/root.

Now the /etc/init.d/fsck tries to check the filesystems but doesn't find /dev/mapper/root and aborts without checking ANY filesystem at all.

Reproducible: Always



Expected Results:  
1. /dev/mapper/root should be present

2. fsck should at least check the other filesystems that are "accessible"

Point 1. can be fixed by calling "dmsetup mknodes" which will create the missing entries in /dev/mapper.

As a hotfix it could be added to start() in /etc/init.d/device-mapper.
That worked for me.
Comment 1 Sebastian Pipping gentoo-dev 2011-01-20 18:32:37 UTC

*** This bug has been marked as a duplicate of bug 344407 ***