At the moment I have a Debian installation on a disk that is going to be moved onto a new motherboard, which has an entirely new chipset. This chipset is supported in 2.4.20, but not in 2.4.18 which is what I am running currently.
The 2.4.20 sources are in /usr/src, but the need to be unpacked and recompiled. Sadly, the pc (for whatever reason) won't stay working for long enough for a compile and make-kpkg.
Would it be possible for me to use a rescue disk, chroot into the existing installation (by mounting the / , /usr and /home partitions, /swap is on a different hd which I am also moving to the new mobo), run the compile from there, use dpkg to install, reset LILO, then exit? I have a feeling it *should* be possible, but I have sneaky suspicions there will be odd problems...
I expect to do the following (partition names aren't exact, but you get the idea- & commans cribbed from gentoo install docs):
# Mounting swap swapon /dev/hdb5
# Make directories to mount existing partitions onto mkdir /mnt/debian mount /dev/hda1 /mnt/debian mkdir /mnt/debian/usr mount /dev/hda3 /mnt/debian/usr mkdir /mnt/debian/home mount /dev/hda5 /mnt/debian/home cd /mnt/debian
# Not sure why I should do this.... mount -o bind /proc /mnt/debian/proc
#Actually chroot into it.... chroot /mnt/debian /bin/bash
The problem I can see is whether I will be able to find the paths to gcc, dpkg, make-kpkg etc...
Can anyone suggest anything I may have missed?
TIA