Need to repartition and reinstall a server without rebooting, all over SSH? Sure, why not! https://github.com/marcan/takeover.sh …
-
-
-
Replying to @marcan42
set -e is wrong because half of the steps need rollback to avoid brick
1 reply 0 retweets 0 likes -
Replying to @trufae
Wrong. None of the steps *at all* affect the running OS in any way until the last two lines, mount and telinit.
1 reply 0 retweets 0 likes -
If mount fails you can umount /sbin manually. After telinit all bets are off.
1 reply 0 retweets 0 likes -
Replying to @marcan42
yes manually you can always fix anything. But for me the purpose of the script is to avoid human interaction.
1 reply 0 retweets 0 likes -
Replying to @trufae
The purpose of the script is not to try to take care of all possible scenarios. It's just a reference for a known working recipe.
2 replies 0 retweets 1 like -
This is why it doesnt actually try to kill all daemons or unmount root or anything like that. You're expected to do it manually.
1 reply 0 retweets 0 likes
The goal was to have a known working method for the init takeover, because if *that* goes wrong your kernel panics.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.