My system has developed serious problems related to the emul libs. The
advice given as a reply to my bug has made the system impossible to
upgrade using emerge. It is possible the problem dates back to the
2004.3->2005.0 upgrade, I don't know.
Is there a way to build a "from scratch" 2005.1 system over the net
without having to download and boot from a CD? Will it leave my user
directories alone? The installation docs assume that you don't have a
runnig gentoo system and start with a boot CD.
I had to install a few Gentoo systems over the net from preexisting Red
Hat installations.
The way I usually did was:
1. Backup any important data (including /home etc)
2. Remove the swap from the system (swapoff)
3. Change the swap partition from 82 to type 83 (Linux) with fdisk
4. Reboot (if necessary after the fdisk)
5. Format that partition to the file system you want
6. Install a stage3 into that partition
7. Chroot into it, do the basic things you need to get your system
working. Update the stage3 to the latest version. Get at least the
password changed. network configured, ssh etc
If downtime is bad and there is enough space, install apache and mysql,
configure them etc.
As I had to keep downtime to a minimum I'll follow along that patg.
8. Add the old root into gentoo's fstab so that it mounts somewhere.
Add another line so that the old system /home is mounted as the new /home
Do the same with databases and any other directory (such as mail queue
etc) that you need to provide service.
9. Leave the chroot
10. Modify your boot loader to start with the new partition, with maybe a
fallback to the old one.
11. Reboot
12. Log into the (hopefully) new system.
13. If everything is ok, start deleting the old system's file from the
partition, be careful not to delete the home and database files (or
anything mount binded).
14. Create a new directory on the oldroot and change to it.
15. Move the new system files to the newroot, preserving everything (tar
is good for that). Take care to exclude /proc and /sys from it, but do
create the directories. Also you should exclude /tmp and recreate it
properly.
17. Update the fstab for the new system.
16. Kill the services, umount anything that you did in 8.
17. Modify your boot loader to load the old parttion.
18. Reboot
19. Check that everything is ok / works
20. Redo the swap partition.
Everything should come back fine. Of course, YMMV. You need about 1.5gb to
do it for a simple system.
--
[email protected] mailing list