Click to See Complete Forum and Search --> : Gentoo Install - Emerging kernel


tmcG
10-08-2003, 08:14 PM
I am having some difficulties with installing Gentoo.

I have followed the great documentation on the Gentoo site and have chosen a stage3 install (just to allow me to evaluate it, once I am ready for "production" I will use portage to connect to the 'net and update all packages. I don't have an internet connection currently on the PC I am testing it on).

I did read this thread but unfortunately, it provided no help for my problems:

Thread 1 (http://www.justlinux.com/forum/showthread.php?s=&threadid=113342&highlight=gentoo+and+install)

I have hit a snag when emerging the kernel.

I have copied all files to the hard disk (as discussed here in the Gentoo install doc:)

if you wanted to perform a stage3 install of Gentoo, then you would just unpack the stage3 tarball. Unpack the stage tarball as follows:

Important: Be sure to use the p option with tar. Forgetting to do this will cause certain files to have incorrect permissions.

Code listing 8.2: Unpacking the Stages

# cd /mnt/gentoo
Change "stage3" to "stage2" or "stage1" if you want to start from these stages instead.
If you downloaded your stage tarball, change the path below to begin with "/mnt/gentoo/"
instead of "/mnt/cdrom/stages/".
# tar -xvjpf /mnt/cdrom/stages/stage3-*.tar.bz2



If you downloaded your stage tarball to /mnt/gentoo, you can now delete it by typing rm /mnt/gentoo/stage*.tar.bz2.

GRP package/snapshot steps

Important: The following instructions are for GRP users only. If you are not using GRP, continue with "Selecting Mirrors (Optional)".


GRP Users: There is a Portage snapshot on the Live CD. You will need to use this snapshot so that you can skip the emerge sync step later in this document, since emerge sync requires a network connection. Untar this snapshot as follows:

Code listing 8.3: Using Portage snapshot

Replace yyyymmdd with the datestamp in the filename.
# tar -xvjf /mnt/cdrom/snapshots/portage-yyyymmdd.tar.bz2 -C /mnt/gentoo/usr



This will extract a snapshot of the Portage tree to your fresh Gentoo install. Now you won't need to connect to the Internet and use emerge sync to download a Portage tree. Now, copy distfiles and packages from the Live CD into place:

Code listing 8.4: Copying GRP files

# cp -R /mnt/cdrom/distfiles /mnt/gentoo/usr/portage/distfiles
# cp -a /mnt/cdrom/packages /mnt/gentoo/usr/portage/packages



All relevant files are now in place for using GRP. You should now have everything copied over and unpacked that you'll need to install Gentoo Linux -- even without a network connection.



I have successfully done the step of Emerging Kernel Sources with the command:

# emerge -k sys-kernel/gentoo-sources

but the next step fails when I run

# emerge -k genkernel

It attempts to connect to the internet to download the kernel files.

I thought that I had all files extracted to the hard disk? Am I wrong? If so, please help!

Thanks in anticipation!


:)

Hayl
10-08-2003, 08:21 PM
it (the genkernel ebuild) should be there.

check in the /usr/portage/distfiles directory for it.

however, that being said; i HIGHLY recommend that you follow the instructions on compiling your own kernel - without genkernel. genkernel is a total POS imho. there was one person who posted on here because genkernel set up his kernel with a bunch of RAID devices that were not on his system. i have yet to see anyone post anything positive on #gentoo about genkernel.

tmcG
10-08-2003, 08:40 PM
Thanks for the advice Hayl, I will have a go at compiling my own!:)

sploo22
10-08-2003, 09:06 PM
genkernel didn't even work on my computer (AMD K6-2, 64MB) - I think it segfaulted or something.

Choozo
10-10-2003, 04:17 AM
Originally posted by sploo22
genkernel didn't even work on my computer (AMD K6-2, 64MB) - I think it segfaulted or something. Same here (P4-3GHz, 1GB) but it just froze, didn't notice any segfaults...

I'll leave Gentoo alone until I'm really bored... :D

dalek
10-10-2003, 06:03 AM
"emerge -K genkernel". The upper case K makes it load local, no net.

That should help. I used genkernel and it worked fine. :confused:

Later

:D :D :D :D

Wolface
10-10-2003, 07:50 AM
As in any case I'd go with manual install. I've never trusted the performance and compatability on "auto" settings.

gfreehed
10-10-2003, 09:01 AM
Genkernel worked on my machine, but it didn't set up everything correctly and I still had to do a manual install anyway. Besides, it's always better to know exactly what is included in your kernel. One of the main benefits of Gentoo is that you get to pick what you want on your system anyway.