The answer is simple: download and use my script.
This is a very early draft, the script abilities are very limited, there are a lot things to implement and many bugs to fix, but it
runs fine on my laptop successfully installs FreeBSD 13.0 over the default CentOS Linux 8 on a VirtualBOX machine.
- The script is extremely dangerous, it can easily ruin your OS, data and life. Do not run it in production or on the system that has any value. You have been warned!
- Network connection required: linux2free.sh downloads files from Internet
- Currently the linux2free.sh script supports UEFI only boot. Sorry for MBR scheme, perhaps someday I’ll add it (or not)
- Only Redhat based Linux distributions are supported
- The resulted FreeBSD system is very minimalistic. It uses a simple custom starup scripts to bring up network interfaces and start sshd, you have to configure the system and install additional packages yourself
- linux2free created a boot EFI partition and a small ZFS filesystem for FreeBSD to start up, but the rest of the space formerly used by Linux has to be redistributed manually.
sudo dnf upgrade -y reboot wget https://raw.githubusercontent.com/mezantrop/linux2free/master/linux2free.sh && sudo sh linux2free.sh
- Allow root to ssh in remotely
- Set default router
- Support more Linux distributions
- Make the code better (Oh, there are plenty things to do! See TODO remarks over the script body)
2021.12.25 v0.1 Mikhail Zakharov <email@example.com> Initial version 2021.12.26 v0.2 Mikhail Zakharov <firstname.lastname@example.org> SSH root login, default route, resolver
Don’t hesitate to enchance, report bugs or call me, Mikhail Zakharov email@example.com