Hello,

I don't really know if anyone is using lava-os-build.
I believe that using /etc/os-release before /etc/issues sounds better.

A patch would be welcomed.


Rgds

Le mer. 10 avr. 2019 à 09:16, Frank, Matthias <Matthias.Frank@tq-group.com> a écrit :

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

_______________________________________________
Lava-users mailing list
Lava-users@lists.lavasoftware.org
https://lists.lavasoftware.org/mailman/listinfo/lava-users


--
Rémi Duraffort
LAVA Team, Linaro