Another script to reinstall linux.
Update :
2022-5-29
1.Now the reinstallation for debian 11 and ubuntu 20.04 is supported.
2.The source of non-free, contrib and backports is added for debian. Meanwhile source of universe, restricted and backports is added for ubuntu.
3.No swap partition is applied.
4.Low memory mode is supported.
5.Ssh-keys is supported.
6.Corresponding mirror is adopted.
7.RAID configuration is NOT supported.
Thanks to Vicer.