Bug 2777

Summary: grub-mkconfig references wrong location of grub-mkconfig_lib
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jesse Zhang <sen.zhang>
Component: coreAssignee: Jesse Zhang <sen.zhang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: laurentiu.serban, liang.li2, meta.mr.watcher, meta.watcher, sgw, zhenfeng.zhao
Version: unspecified   
Target Milestone: 1.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jesse Zhang 2012-07-17 06:29:24 UTC
grub-mkconfig_lib is installed to /usr/share, but grub-mkconfig thinks it's in /usr/lib.

root@qemux86:~# grub-mkconfig 
/usr/sbin/grub-mkconfig: line 98: /usr/lib/grub/grub-mkconfig_lib: No such file or directory
root@qemux86:~# ls /usr/lib/grub/grub-mkconfig_lib
ls: /usr/lib/grub/grub-mkconfig_lib: No such file or directory
root@qemux86:~# ls /usr/share/grub/grub-mkconfig_lib 
/usr/share/grub/grub-mkconfig_lib
root@qemux86:~# grep grub-mkconfig_lib /usr/sbin/grub-mkconfig 
. ${libdir}/grub/grub-mkconfig_lib

I have a patch ready, will send to oe-core.
Comment 1 Jesse Zhang 2012-07-17 07:03:07 UTC
After the error is fixed, it would fail of another one:

# grub-mkconfig 
/usr/sbin/grub-probe: error: cannot stat `/dev/root'.

Which needs another patch.
Comment 3 Laurentiu Serban 2012-08-19 10:45:19 UTC
root@qemux86:/# find . -name *grub*
./usr/share/augeas/lenses/dist/tests/test_grub.aug
./usr/share/augeas/lenses/dist/grub.aug

grub is not installed in core-image-lsb-sdk.
So there might be a problem with the recipe.

I reopen this bug.
If there is another explanation for this, please let me know
Thank you,
Laurentiu
Comment 4 Jesse Zhang 2012-08-20 01:37:22 UTC
Hi Laurentiu, that seems a different issue. "grub is not installed in core-image-lsb-sdk" is clearly irrelevant to this bug. Please file new bugs instead of reopening this one.
Comment 5 Jesse Zhang 2012-08-20 01:39:12 UTC
Btw, I was using qemux86, but I ran it on real hardware and I copied grub to the target.
Comment 6 liang li 2012-09-04 06:09:43 UTC
grub version now 2.00,change status to verified.