Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47705 - grub-install fails because of lack of /etc/mtab
Summary: grub-install fails because of lack of /etc/mtab
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 31145
  Show dependency tree
 
Reported: 2004-04-13 07:53 UTC by Michael C. Ferguson
Modified: 2004-08-04 01:51 UTC (History)
4 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 Michael C. Ferguson 2004-04-13 07:53:33 UTC
The grub-install command prescribed by the handbook fails because there is 
no /etc/mtab yet in the chroot'd environment. This can be easily solved by 
copying /proc/mounts over to /etc/mtab, but newbies might not realize this;
therefore, we should put in a note to copy over mtab, or suggest an alternative
method for installing grub, that does not rely on mtab.
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2004-04-13 08:29:31 UTC
I think the references to grub-install are now removed from the handbook, after
a short test period.

There is active discussion about this issue,
doc devs are working hard ;)

see
http://marc.theaimsgroup.com/?l=gentoo-doc&m=108143241409948
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2004-04-25 11:39:15 UTC
See also the bugreport upstream: http://savannah.gnu.org/bugs/?func=detailitem&item_id=8539
Comment 3 Michael C. Ferguson 2004-05-09 20:42:12 UTC
Seems to be removed from the handbook now, in favor of the grub shell method. Closing the bug...
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2004-05-10 00:36:24 UTC
I'm reopening. The use of the grub shell is indeed used currently, but it isn't advised. Using grub-install is, but it is currently not possible due to a (go figure) coreutils issue (df to be exact).

When coreutils is updated I hope that I can use grub-install in the next installation instructions (2004.2 release).
Comment 5 Robert Moss (RETIRED) gentoo-dev 2004-07-11 23:03:57 UTC
Sven, can you confirm that df is still broken?
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-30 04:18:21 UTC
I can't confirm for the moment (I don't have 2004.2 install media at my disposal yet - stupid download limits); I have altered the instructions in our draft handbook to use grub-install, see http://www.gentoo.org/doc/en/handbook/draft/handbook-x86.xml and http://www.gentoo.org/doc/en/handbook/draft/handbook-amd64.xml
Comment 7 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-31 03:57:39 UTC
Okay, I got grub-install working. I can't use it outside the chroot (since it hard-required /sbin/grub to be available) but copying over "/proc/mounts" to "/etc/mtab" works just fine.

I've updated the instructions in the draft handbook for amd64 and x86: http://www.gentoo.org/doc/en/handbook/draft/handbook-amd64.xml
http://www.gentoo.org/doc/en/handbook/draft/handbook-x86.xml

I will make those official when I get word from the other architectures that I can commit (still need to ask them yet, first some extra testing).
Comment 8 Sven Vermeulen (RETIRED) gentoo-dev 2004-08-04 01:51:19 UTC
Okies, changes are now official.