this considers that raspberry pi is already installed with the OS and it is up and running connected via ssh
sudo apt update
sudo apt upgrade
once this is done, we need to run pre-install script for open media vault
wget -O - https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/installScript/master/preinstall | sudo bash
reboot after script is install
sudo reboot