I have a remote server currently installed with CentOS and I'll be doing a remote install of a new operating system - either gentoo or debian.
I've seen other related questions in here, but given this is a somewhat risky procedure I want to make sure my planning is right.
Here's the steps I'll be taking:
- create a new partition and set it up with the desired filesystem for the new OS
- mount the partition in /tmp/newos
- use debootstrap or a stage3 install (depending on OS) to configure a minimal install in the partition
- chroot to /tmp/newos and setup network configuration, (xen) kernel, sshd and a new user
- exit from chroot
- add the new OS to the current OS grub config
- set the new kernel to boot only once according to [these instructions]
I'm thinking it might be best to enable "reboot-on-panic" and "reboot-on-oops" on the new kernel, just in case.
Any step I'm missing or other things that can go wrong?