-
prepare and mount all the 3 partition /, the swap partition, and /home
make the gentoo root partition the current directory
-
-
prepare compilation options in ./etc/make.conf <blockquote>CFLAGS=”-O2 -march=i686 -pipe” CXXFLAGS=“${CFLAGS}”</blockquote>
get the
DNS resolutions from the system cp /etc/resolv.conf ./etc/
mount /proc with mount -t proc none ./proc
mount /dev with mount -o bind /dev ./dev
make the chroot with chroot . /bin/bash
make env-update and source /etc/profile for updating the environment
emerge --sync for updating the emerge tree
configure /etc/make.conf using the USE variable (for example with USE=“alse dvd gnome”), all the flags are in the /usr/portage/profiles/use.desc
update /etc/locale.gen for the charsets, then execute locale-gen for generating and updating the LOCALES
updating time: <blockquote>cp /usr/share/zoneinfo/Europe/Paris /etc/localtime</blocquote> edit /etc/conf.d/clock with <blockquote>CLOCK=“local” TIMEZONE=“Europe/Paris”</blockquote>
download kernel sources with emerge gentoo-sources (the archive is in /usr/src, emerge create a symbolic link to the latest installed sources with /usr/src/linux), go to /usr/src/linux
two methods to get a kernel:
configure the dynamic modules: update-modules-f for updating the module configuration file automatically (by hand you have to edit the file /etc/modules.autoload.d/kernel-2.6)
edit /etc/fstab, example: <blockquote>/dev/sda1 /boot ext2 defaults,noatime 1 2 /dev/sda2 none swap sw 0 0 /dev/sda3 / ext3 noatime 0 1 /dev/cdrom /mnt/cdrom auto noauto,user 0 0</blockquote>
keyboard configuration