"Wipe and reinstall a running Linux system via SSH, without rebooting. You know you want to.
A script to completely take over a running Linux system remotely, allowing you
to log into an in-memory rescue environment, unmount the original root
filesystem, and do anything you want, all without rebooting. Replace one distro
with another without touching a physical console.
WARNING
This is experimental. Do not use this script if you don't understand exactly
how it works. Do not use this script on any system you care about. Do not use
this script on any system you expect to be up. Do not run this script unless
you can afford to get physical access to fix a botched takeover. If anything
goes wrong, your system will most likely panic.
That said, this script will not (itself) make any permanent changes to your
existing root filesystem (assuming you run it from a tmpfs), so as long as you
can remotely reboot your box using an out-of-band mechanism, you should be OK.
But don't blame me if it eats your dog.
This script does not have any provisions for exiting out of the new
environment back into something sane. You will have to reboot when you're
done. If you get anything wrong, your machine won't boot. Tough luck.
This is not a guide for newbies. I'm deliberately not giving you commands you
can copy and paste. If you can't figure out what to do exactly without
handholding, this script is not for you."
https://github.com/marcan/takeover.sh
No comments:
Post a Comment