Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419607 - grub2 needs /sys in chroot
Summary: grub2 needs /sys in chroot
Status: RESOLVED WONTFIX
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: x86 Linux
: Normal minor (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 11:56 UTC by jan vereecke
Modified: 2012-06-08 07:22 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 jan vereecke 2012-06-04 11:56:37 UTC
Possibly too early, as grub2 is not stable yet, but I found out: the gentoo handbook stated to mount /proc and to bind-mount /dev before chrooting.

I just started a new install, and tried to use grub2-mkconfig, which failed. The reason is that function prepare_grub_to_access_device within grub-mkconfiglib tries to read data from /sys to find data about the boot device.
(try fs_hint="`"${grub_probe}" --device "${device}" --target=compatibility_hint`")


Reproducible: Always

Steps to Reproduce:
1. Follow the handbook to chroot
2. emerge grub2
3. grub2-mkconfig

Actual Results:  
00_header is executed
10_linux is partly executed and then silently fails

Expected Results:  
the handbook should advise to 
mount -bind /sys ${chroot-dir}/sys

in order to allow grub2-mkconfig to finish correctly
Comment 1 nm (RETIRED) gentoo-dev 2012-06-04 20:15:41 UTC
it's still hardmasked. we don't document grub2 anywhere, so we can't put this in our documentation until it's marked stable.

however, you're welcome to update the gentoo wiki. it should already have a grub2 page.
Comment 2 nm (RETIRED) gentoo-dev 2012-06-08 07:22:52 UTC
*** Bug 420159 has been marked as a duplicate of this bug. ***