Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520018 - genkernel-provided initrd/initramfs leaves mounts inaccessible
Summary: genkernel-provided initrd/initramfs leaves mounts inaccessible
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2014-08-15 20:50 UTC by Fedja Beader
Modified: 2019-07-18 02:33 UTC (History)
3 users (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 Fedja Beader 2014-08-15 20:50:28 UTC
screen transcript follows:

>> Determining root device...
>> Mounting /dev/vg_main/swap as root...
>> Using mount -t auto -o ro
!! The filesystem mounted at /dev/mapper/vg_main-swap does not appear to be a valid /, try again
!! Could not find the root block device in .

Please specify another value or: press Enter for the same, type "shell" for a shell, or "q" to skip...

root blick device() :: /dev/vg_main/system


Reproducible: Always

Steps to Reproduce:
Try booting into an "invalid" root block device, then pick a valid one.
Actual Results:  
leftover mount from initrd:
/dev/mapper/vg_main-swap /newroot ext4 ro,relatime,data=ordered 0 0

# umount /dev/mapper/vg_main-swap
umount: /dev/mapper/vg_main-swap: not mounted


Expected Results:  
There be no leftover mounts

Can the "does not appear to be a valid /" be changed into something more informative?


PS: I don't know what version of genkernel created that initramfs, but it was after kernel 3.8.6-hardened was stabilised.
Comment 1 Larry the Git Cow gentoo-dev 2019-07-16 20:30:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=9061be50c5e6650978138d1484ee6c988ea940a9

commit 9061be50c5e6650978138d1484ee6c988ea940a9
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-07-16 20:27:45 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-07-16 20:30:04 +0000

    linuxrc: Umount /newroot when it was rejected before prompting for a new root device
    
    Bug: https://bugs.gentoo.org/520018
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 defaults/linuxrc | 12 ++++++++++++
 1 file changed, 12 insertions(+)

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=cb6dccf51bf2ae325c962febb48158f705f4c34c

commit cb6dccf51bf2ae325c962febb48158f705f4c34c
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-07-16 20:26:14 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-07-16 20:29:15 +0000

    linuxrc: Tell user why we consider a root device as invalid
    
    Bug: https://bugs.gentoo.org/520018
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 defaults/linuxrc | 36 ++++++++++++++++++++++++++++++------
 1 file changed, 30 insertions(+), 6 deletions(-)
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-18 02:33:26 UTC
Released with >=genkernel-4.0.0_beta5.