Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154909 - Suggestion: mount/chroot as one step, and chroot script
Summary: Suggestion: mount/chroot as one step, and chroot script
Status: RESOLVED INVALID
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:
Depends on:
Blocks:
 
Reported: 2006-11-12 10:39 UTC by Dirk
Modified: 2006-11-13 04:10 UTC (History)
0 users

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 Dirk 2006-11-12 10:39:11 UTC
<<<<< [[ Preface ]]
I would like to propose a very small (possible) improvement to the primary
interface to possible gentoo-lovers(the fantastic handbook), because I think there are many silent newbies, who might be scared away by one to many difficulties. Just in case there might be a rework of the handbook in the future.
>>>>>>

<<<<< [[ Problem ]]
If you want to chroot a second time to stage3 install, and move directly to the heading "Entering the new environment" in the handbook, you miss the step where you mount the proc-fs.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6#doc_chap1
All seems well until you try to emerge something because the stage3-version
of touch uses "/proc/self/fd/0" instead of the filename to update the time.
error:
    touch: setting times of `/var/tmp/portage/portage-2.1.1-r1/.unpacked': Function not implemented
Not very expressive concerning the cause.
strace-output:
    utimes("/proc/self/fd/0", NULL)         = -1 ENOENT (No such file or directory)
>>>>>

<<<<< [[ Suggestion ]]
I'd like to propose the merging of the previous step "Mounting the /proc and /dev Filesystems"
into the step thereafter "Entering the new environment".
Additionally there could be the hint that, as you probably enter the chroot several times, it could be helpful to create a "chroot-to-gentoo" script.
Also one could mention that the steps thereafter only need to be done once (except PS1 if you like)
>>>>>
Comment 1 nm (RETIRED) gentoo-dev 2006-11-12 11:53:10 UTC
(In reply to comment #0)
Huh? did  you miss how we already have those steps in there?

Code Listing 4: Mounting /proc and /dev

# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev

One right after the other. If you missed typing those, well...we're not responsible for user error.

Creating scripts at this point in the handbook is unnecessary; and we describe elsewhere how to get back into a system using the liveCD to troubleshoot, including mounting the /proc and /dev filesystems, as well as everything else before chrooting.

It's fine as is, but thank you for sharing your thoughts.
Comment 2 Dirk 2006-11-13 04:10:57 UTC
Yeah, yeah, that's what I expected (reason for the preface).
It's only because when you want to reenter and, like I wrote, move
directly to "Entering the new environment".
At least 3 reader (me a questionee and an answerer had that prob)
and when you search for the right terms you get the answer. So many
might be silent.
It's maybe my english but the script-thing was supposed to be
a hint to the reader.
Anyway, was just a suggestion for a unlikely rework in the future.
Never mind.