Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28382 - code listing 8.6 to bind, or not to bind proc?
Summary: code listing 8.6 to bind, or not to bind proc?
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: Sparc Linux
: High blocker (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/gentoo-x...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-10 12:52 UTC by Leonard Floyd
Modified: 2003-09-11 11:04 UTC (History)
1 user (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 Leonard Floyd 2003-09-10 12:52:58 UTC
http://www.gentoo.org/doc/en/gentoo-x86-install.xml
Code listing 8.6: Prepping and entering the chroot environment
 
# mount -t proc proc /mnt/gentoo/proc
# cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# chroot /mnt/gentoo /bin/bash
# env-update
Regenerating /etc/ld.so.cache...
# source /etc/profile
(The above points your shell to the new paths and updated binaries)
---------------------------------------------------------------------
BUT, Ive seen in forums that the proper command is:
mount -t bind proc proc /mnt/gentoo/proc
---------------------------------------------------------------------
As a newbie, I'd really like to know which is correct
 


Reproducible: Couldn't Reproduce
Steps to Reproduce:
# mount -t proc proc /mnt/gentoo/proc
# cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# chroot /mnt/gentoo /bin/bash
# env-update
Regenerating /etc/ld.so.cache...
# source /etc/profile
Actual Results:  
lots of "no - such file or directory"
after proceeding through the install

Expected Results:  
Remembered the new settings, ie- the mounting of files/directories shouldnt 
melt away

I may be wrong about this one, maybe 
# mount -t proc proc /mnt/gentoo/proc
# cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# chroot /mnt/gentoo /bin/bash
# env-update
Regenerating /etc/ld.so.cache...
# source /etc/profile
is correct.
and the reason I cant get installed is some other thing,
like n00bieness
please check it though
Thanks
Comment 1 Leonard Floyd 2003-09-10 13:00:34 UTC
Bug 27585
claimed to be resolved- so why is it still in the x86 install.xml ?

I've recently tried to install Gentoo 1.4 using Knoppix 3.2 and the Gentoo
Alternative Installation Guide.
When I only type:
mount -t proc proc /mnt/gentoo/proc
as suggested by the Installation Guide, I get errors of scripts unable to find
/dev/null. And finally the bootstrap.sh will freeze.

It can easily be fixed if the user runs 
mount -o bind /proc /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2003-09-10 15:56:41 UTC
The x86 installation guide is written for people that use a LiveCD, not Knoppix. Knoppix is explained in the alternative installation guide (altinstall.xml) which has been indeed corrected with bug #27585.

With the LiveCDs, you shouldn't use "mount -o bind"; with Knoppix, you should. 
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2003-09-11 11:04:32 UTC
Marking this as invalid; x86-install isn't affected.