Stable Gentoo Chroot

December 20, 2009 · Posted in Gentoo · 3 Comments 

Recently I joined Gentoo AMD64 team. I always wanted to become an archer and bring the stable branch in a more sane condition. Fortunately, amd64 members are already doing an amazing work, and amd64 stable branch is in a pretty well state. So how do I plan to do the keywording and stabilization?

I am going to use two different ways. First, I will use my old Athlon AMD64 single core / 1,5GB@333Mhz of RAM as a stable platform to do the stabilizations of small packages. This is a quite old CPU so I can’t do much there. On the other hand, I owe a new Phenom X3 machine with 2GB@800Mhz of RAM. However, this machine is running testing Gentoo with plenty of masked packages as well ^_^

So the only choice I had to take advantage of this is to build a stable chroot :)

Those are the steps I followed :) ( Might be wrong, but hey, they worked for me :p )

————————————————————————————

1 ) mkdir /mnt/gentoo-stable
2 ) Download the latest autobuild from your preferred mirror.
    wget http://files.gentoo.gr/releases/amd64/autobuilds/current-stage3/
3 ) mv stage3-amd64-20091217.tar.bz2 /mnt/gentoo-stable
4 ) cd /mnt/gentoo-stable && tar xvjpf stage3-amd64-20091217.tar.bz2
5 ) cp -L /etc/resolv.conf /mnt/gentoo-stable/etc && cp -L /etc/passwd /mnt/gentoo-stable/etc && cp -L /etc/shadow /mnt/gentoo-stable/etc
6 ) Adjusted my make.conf
7 ) Created a custom init script for the host machine
8 ) rc-update add gentoo-stable on my host machine
9 ) Done

-------------------------------------------------------------------

Now all you need to do is to run

chroot /mnt/gentoo-stable /bin/bash && source /etc/profile && env-update

See? It wont take more than 5′ to have a brand new stable Gentoo :)

ps: As you may have notitced, I am binding my cvs checkout of portage to /mnt/gentoo-stable/usr/portage. This means that the chroot is using my cvs portage to build the packages. Of course, you can always bind your rsync clone of portage by using/

mount -o bind /usr/portage /mn/gentoo/usr/portage  :)

Trivial procedure but I had to mention it :)

Disclaimer: I used 32bit chroot guide from Gentoo docs as a tutorial reference :)

GreekBloggers.com
Patras Wireless Metropolitan Network
Planet Hellug
iloog
forum hellug