CreateImageWizard: initialize on-prem with host distro

Initialize the create image wizard with the host's distribution for the
on-premise frontend.
This commit is contained in:
Gianluca Zuccarelli 2025-01-23 14:07:38 +00:00 committed by Sanne Raymaekers
parent ed8254f962
commit 44af2f278b
4 changed files with 42 additions and 10 deletions

View file

@ -0,0 +1,8 @@
import { read_os_release } from 'os-release';
import { Distributions } from '../../../store/imageBuilderApi';
export const getHostDistro = async () => {
const osRel = await read_os_release();
return `${osRel.ID}-${osRel.VERSION_ID}` as Distributions;
};