Hi lava users,

 

I have tested lava-os-build on my ptxdist root images and I got this output:

root@MBa6x:/lava-557/bin ./lava-os-build

_____ ___    ____            _

|_   _/ _ \\  / ___| _   _ ___| |_ ___ _ __ ___root@MBa6x:/lava-557/bin

 

Maybe it’s better to look for other files first, like /etc/os-release (or /usr/lib/os-release) for systemd systems.

This file is (more) standardized way to detect with os/build is running by evaluating the keys NAME,PRETTY_NAME etc.

 

What is the exact function of lava-os-build? Only diagnostic purpose to find out with os is running? Does something else rely on lava-os-build? What could break if I change that script?

 

Matthias

 

[0] https://www.freedesktop.org/software/systemd/man/os-release.html