Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42829 - Feature request -- mount /boot before install.
Summary: Feature request -- mount /boot before install.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-24 19:17 UTC by Steve Garcia
Modified: 2004-03-28 03:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
add option to mount /boot (genkernel_mountboot.patch,924 bytes, patch)
2004-02-28 19:15 UTC, Rui Malheiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Garcia 2004-02-24 19:17:53 UTC
genkernel automatically places the new kernel in the /boot directory.  However, by default, Gentoo Linux doesn't mount the /boot partition, so genkernel is really writing *underneath* the mount point.  That means the kernel (and initrd, etc.) have to be moved by hand *out* of /boot, the boot partition has to be mounted and then the files moved *back*.

Wouldn't it be simpler to have genkernel automgically mount /boot at the proper time?

Reproducible: Always
Steps to Reproduce:
1.Don't mount /boot by hand
2.Run genkernel
3.Profit!!  (oops, forgot myself)

Actual Results:  
kernel installed in /boot *directory*, not in /boot *partition*.

Expected Results:  
Mount /boot first.
Comment 1 Steven Wagner 2004-02-26 00:42:29 UTC
I really hope this bug gets fixed. This was the default behavior of the old version of genkernel. 
Comment 2 Brad House 2004-02-26 19:41:32 UTC
unfortunately there's more involved then that for checking.
The previous genkernel just arbitrarily tried to
call 'mount /boot', which may not be proper necessarily.

there will be some automation here in the future, but 
right now, just remember to mount boot before running
genkernel.  That makes a lot more sense then running
genkernel, moving stuff out of boot, mounting boot, then
copying stuff into boot, don't you think?
Comment 3 Steve Garcia 2004-02-27 11:12:06 UTC
That's why I called this an enhancement request rather that a bug.  Perhaps the most immediate thing that should be changed is a reminder to the user to mount /boot, since the real problem is the way it catches you by surprise the first time you use genkernel.  Once you've had to move files around once (ok, maybe twice, sometimes I'm a slow learner) you generally remember to mount first.
Comment 4 Rui Malheiro 2004-02-28 19:15:22 UTC
Created attachment 26549 [details, diff]
add option to mount /boot

How about letting the users decide if they want genkernel to mount /boot for
them? Here's a brief patch to /etc/genkernel.conf and /usr/bin/genkernel that
implement a MOUNTBOOT option (default is "no").
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-03-28 03:06:27 UTC
This was implemented in genkernel-3.0.2_rc1.