Gentoo Archives: gentoo-amd64

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Re: Am i being over optomistic ?
Date: Sun, 12 Mar 2006 12:21:19
Message-Id: pan.2006.03.12.12.18.13.378152@cox.net
In Reply to: [gentoo-amd64] Am i being over optomistic ? by Neil Stone
1 Neil Stone posted <4413F825.4080600@×××××××××××.com>, excerpted below, on
2 Sun, 12 Mar 2006 10:29:57 +0000:
3
4 > OK, I have managed to get my gentoo system in to a rather wierd state...
5 > I will be rebuilding it shortly (several apps installed that fail to
6 > work now etc..)
7 >
8 > Is there anything wrong with building on a separate disk, in the same
9 > machine using chroot ?
10 >
11 > Is there anything I should be aware of, or pointers anyone can give me
12 > about this approach ?
13
14 There's nothing wrong with it, no. In fact, doing a chroot install is one
15 of the alternative installation methods given in the alt-installation
16 methods documentation, and what I used to install Gentoo originally. As
17 it happened, I was installing from a Mandrake for AMD64 system, but Gentoo
18 for AMD64 would work just the same, and since you already know Gentoo,
19 you'll even have it easier than I did.
20
21 Gentoo Linux Alternative Installation Guide
22 Chapter 6, Installing Gentoo from an existing Linux distribution
23 http://www.gentoo.org/doc/en/altinstall.xml#doc_chap6
24
25 Actually, pretty much all it says is to use the existing installation to
26 partition the disk as appropriate (it gives a bunch of detailed
27 instructions for using parted, but use whatever you normally use, or
28 since it's a second disk, you don't even need to partition it if you
29 don't want to, tho I would, but that's me), and have the desired stage
30 tarball ready to go, then start with the regular handbook installation at
31 Preparing the Disks.
32
33 It does mention a special set of commands to use when you chroot, flushing
34 the environment so you don't contaminate your new one with variables out
35 of the old one. Here's the sequence:
36
37 Code Listing 6.5: Flushing the environment during chroot
38 # env -i HOME=$HOME TERM=$TERM chroot /mnt/gentoo /bin/bash
39 # /usr/sbin/env-update
40 # source /etc/profile
41
42 ... And the place in the handbook that you then start:
43
44 Gentoo Handbook, AMD64, Part 1, Installation
45 Chapter 4, Preparing the Disks
46 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=4
47
48 Then just follow the handbook...
49
50 --
51 Duncan - List replies preferred. No HTML msgs.
52 "Every nonfree program has a lord, a master --
53 and if you use the program, he is your master." Richard Stallman in
54 http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html
55
56
57 --
58 gentoo-amd64@g.o mailing list