Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203933 - fstab needs valid entries before genkernel is run
Summary: fstab needs valid entries before genkernel is run
Status: RESOLVED WONTFIX
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
: 206734 237443 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-31 23:59 UTC by Jonathan
Modified: 2008-09-12 05:02 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 Jonathan 2007-12-31 23:59:48 UTC
fstab needs to have valid entries before running genkernel otherwise the system tries to mount the default /dev/boot.
Update fstab entries should be before run genkernel in the handbook. This applies to the x86 manual and could apply to others as well.

Reproducible: Didn't try

Steps to Reproduce:
1. Follow install instruction from manual - system booted from live cd
2.
3.
Comment 1 nm (RETIRED) gentoo-dev 2008-01-01 01:24:53 UTC
genkernel maintainers, is this true? We've never had a problem with this in the past; that's why the handbook has remained the way it is, and we have lots of genkernel users.

Is this a simple case of PEBKAC, or has genkernel's behavior changed?
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-01-01 01:27:52 UTC
Yes, genkernel tries to mount it. However, it should just display a warning if it can't mount it and continue.

Jonathan, is this actually preventing you from using genkernel?
Comment 3 Jonathan 2008-01-01 02:03:53 UTC
(In reply to comment #2)
> Yes, genkernel tries to mount it. However, it should just display a warning if
> it can't mount it and continue.
> 
> Jonathan, is this actually preventing you from using genkernel?
> 
genkernel displays error message but continues to function but attempt to mount /dev/boot which has not been correctly set means chroot environment does not function correctly & reboot with chroot is required to continue installation. Swapping order of fstab & genkernel in the manual would cure the problem - why not just fix it?
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2008-01-01 02:22:48 UTC
Why is a reboot with the chroot necessary? Unless /dev/BOOT is an actual device node, the mount will always fail and genkernel will plod along like normal.

If the problem is that the kernel and initramfs are going in /boot on / instead of of a separate /boot partition, that's because you're not following the guide.

You still haven't told us what the actual problem is.
Comment 5 Jonathan 2008-01-01 02:41:18 UTC
Reading through the handbook it tells you to use genkernel and then after do other things like update fstab. Genkernel tries to mount partitions specified in fstab and does not manage to do so because it has invalid entries (this is my guess from the error message ... something like /dev/boot failed to mount). Genkernel completes and manages to write files correctly to /boot but because of the attempt to mount the chrooted environment gets confused ... I don't think it understood mount anymore.
I don't think this is a problem with genkernel - its just a problem with the handbook. If fstab was updated before running genkernel it would have worked - after reboot I updated fstab before running genkernel & it worked.
Comment 6 nm (RETIRED) gentoo-dev 2008-01-02 00:56:40 UTC
Seems to be harmless for every single other genkernel user who follows the handbook.

agaffney, I'm thinking of just closing this bug, unless you agree with the reporter that the handbook needs a rewrite (and it would be extensive), rather than any changes made to genkernel itself. I'm just not convinced that the handbook or genkernel itself need any changes.
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2008-01-02 01:01:59 UTC
The effects that he's describing sound to me like the "normal" behavior of a chroot where its /etc/mtab doesn't match the system one or /proc/mounts. I doubt it has anything to do with genkernel trying to mount a non-existant device. I'm all for leaving the handbook as it is.
Comment 8 nm (RETIRED) gentoo-dev 2008-01-02 01:22:15 UTC
(In reply to comment #7)
> The effects that he's describing sound to me like the "normal" behavior of a
> chroot where its /etc/mtab doesn't match the system one or /proc/mounts. I
> doubt it has anything to do with genkernel trying to mount a non-existant
> device. I'm all for leaving the handbook as it is.

To quote Yul Brynner, "So let it be written, so let it be done."
Comment 9 Xavier Neys (RETIRED) gentoo-dev 2008-01-20 21:40:54 UTC
*** Bug 206734 has been marked as a duplicate of this bug. ***
Comment 10 nm (RETIRED) gentoo-dev 2008-09-12 05:02:32 UTC
*** Bug 237443 has been marked as a duplicate of this bug. ***