Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 28382

Summary: code listing 8.6 to bind, or not to bind proc?
Product: [OLD] Docs-user Reporter: Leonard Floyd <lenbro39>
Component: Gentoo Linux x86 Installation GuideAssignee: Sven Vermeulen (RETIRED) <swift>
Status: RESOLVED INVALID    
Severity: blocker CC: swift
Priority: High    
Version: unspecified   
Hardware: Sparc   
OS: Linux   
URL: http://www.gentoo.org/doc/en/gentoo-x86-install.xml
Whiteboard:
Package list:
Runtime testing required: ---

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.