Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47795 - grubconf needs /boot to be mounted to emerge
Summary: grubconf needs /boot to be mounted to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Robert Moss (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-14 00:28 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2004-08-22 09:47 UTC (History)
2 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 Christoph Brill (egore) (RESIGNED) 2004-04-14 00:28:54 UTC
I tried emerging grubconf and it ended here:

checking if splashimage is available... no
/boot/grub/stage2 is not available. Please specify a valid location using --enable-splashimage=/path/to/grub/ or use --disable-splashimage

I mounted /boot and everything went fine. Does it make sense to let the ebuild mount it? Or does it make sense to add a message to the ebuild that the user might need to mount the /boot?
This question comes to my head, because gentoo's manual official instructs the user to create a seperate /boot partition. Comments?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 foser (RETIRED) gentoo-dev 2004-04-20 03:01:17 UTC
having the ebuild mount it is no good ofcourse (it will only be mounted the one time after boot).

We could add a note to the ebuild or even take it a step further and create a wrapper for the exec that will show a message on execution failure maybe (?)

CC-ing the author, maybe he has an idea on this or could even integrate a check+warning into the application itself (?)
Comment 2 Joseph Monti 2004-04-20 04:00:08 UTC
Hi, I'm the author.

I agree having the ebuild mount /boot is not an option. You can set the splashimage from the configure options. So you should be able to determine if it has a splashimage from the version of GRUB? then set the splashimage option appropiately.

I don't have time to confirm this now, but I will check later.
Comment 3 Joseph Monti 2004-04-20 04:11:25 UTC
Ok, I decided to check now ...

You can force grubconf to use splashimage with "./configure --enable-splashimage". This will not actually confirm its existence by probing /boot/grub/stage2. I'm not exactly sure which version of GRUB in portage supports splashimage (in the two years I've been using Gentoo I can't remember not having splashimage), so you will have to check with the GRUB maintainer (or someone who knows the versions). 

But it should be a simple GRUB version check in the ebuild once you know the splashimage-capable version. 
Comment 4 Robert Moss (RETIRED) gentoo-dev 2004-07-11 23:06:27 UTC
All versions of grub in portage support splashimage, and have certainly at least since 0.92-r1.
Comment 5 Joseph Monti 2004-07-16 06:04:33 UTC
Great, I had a feeling it was the case that all versions of grub in portage supported splashimage.

So, this should be an easy fix of adding "--enable-splashimage" to the configure options in the ebuild.
Comment 6 Robert Moss (RETIRED) gentoo-dev 2004-08-04 18:43:02 UTC
Joe, any chance of an updated ebuild?
Comment 7 foser (RETIRED) gentoo-dev 2004-08-18 06:12:06 UTC
should be easy fix, can you take care of it Rob ?
Comment 8 Joseph Monti 2004-08-18 13:18:12 UTC
I could try, but I can't promise it'll be perfect.
Comment 9 Robert Moss (RETIRED) gentoo-dev 2004-08-19 13:17:18 UTC
I've never tried it before TBH, but I can have a look. Unfortunately I'm kinda out of action at the moment - I'm getting paid to do enterprise stuff for Gentoo, and that has to be my priority. Look forward to Apache::ASP, and even an OpenExchange ebuild soon ;-)
Comment 10 Robert Moss (RETIRED) gentoo-dev 2004-08-22 09:47:49 UTC
Fixed in CVS.