Like my previous comment, this function only set the OS, I think we can let this detection as we only let Debian, Ubuntu and CentOS install and use CR.