Restarting the Gentoo Installation (portage mirror problem)

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Restarting the Gentoo Installation (portage mirror problem)

Postby Peter123456 » Thu Jun 23, 2005 10:37 am

Hello All,

I have a problem to restart after a break with the Gentoo installation.

What happend up to now:
1. CD-ROM with a burned gentoo live cd because the computer has only a CD-ROM
2. Harddisk hdd prepared hdd1=boot, hdd2=swap, hdd3=root
3. copied the distfiles to directory "files" on hdd3
4. booting gentoo live cd
5. installed stage1 (source from hdd3)
6. installed portage (source from hdd3)
7. run command echo "local /mnt/gentoo/files" >/mnt/gentoo/etc/portage/mirrors #that should be a problem after restart the next day
8. edited /etc/make.conf
9. did NOT use "emerge --sync"
10. bootstrapped the system
11. run "emerge --newuse system"
12. run "chroot /mnt/gentoo /bin/bash"
13. configured and compiled the kernel

THEN I decided to stop and to continue the next day and used "exit", umounted everything and rebooted

The next day I restarted with
1. mounting as the day before,
2. run command echo "local /mnt/gentoo/files" >/mnt/gentoo/etc/portage/mirrors
3. "chroot /mnt/gentoo /bin/bash",
4. "env-update",
5. "source /etc/profile"

And wanted continue with
6. emerge grub

NOW MY PROBLEM: emerge tries now to download from the internet. It do not use the distfiles from the directory /files on hdd3 anymore as the day before. Again I never used "emerge --sync" as it is recommend in the magazine to prevent this problem.

How can I solve this problem? Thank you in advance

Peter
Peter123456
 
Posts: 1
Joined: Thu Jun 23, 2005 10:35 am

RE: Restarting the Gentoo Installation (portage mirror probl

Postby nelz » Thu Jun 23, 2005 11:52 am

You only need steps 3 to 5 when re-entering the chroot, step 2 only needs to be done once. However,m you haven't made the files available to the chroot environment, so the mirror is an empty directory, that's why it is trying to download. You need

Code: Select all
1. mount --bind /path/to/files /mnt/gentoo/files


A chroot is a locked box, programs inside of it cannot access anything outside. That is why you need to map your files directory to somewhere inside the box.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8548
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

RE: Restarting the Gentoo Installation (portage mirror probl

Postby Guest » Fri Jun 24, 2005 8:42 am

Thank you very much for your answer. I solved the problem when editing the empty mirror file and added "local /files". After that, portage continued to take my files.

Best regards
Peter
Guest
 

RE: Restarting the Gentoo Installation (portage mirror probl

Postby nelz » Fri Jun 24, 2005 8:50 am

How did you end up with an empty mirror file? According to the steps you described, it should have contained "local /mnt/gentoo/files".
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8548
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

RE: Restarting the Gentoo Installation (portage mirror probl

Postby Guest » Mon Jun 27, 2005 7:30 am

Hello netz,

KDE is running now, so everything worked well. I suppose, that working in the chroot shell let the entry "local /files" work :).

Thanks again for your help
Regards
Peter
Guest
 


Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest

cron