pipeline: detect host instead of using org.osbuild.host

Detect the host dynamically from os-release(5) instead of relying on the
`org.osbuild.host` symlink.

It is awkward to install a symlink that tells osbuild which distro is is
running on, when there is a standard way to detect this.

This makes it easier to run osbuild from sources and removes the need to
include every host in the spec file. The latter became hard to do,
because there's no obvious way to distinguish RHEL minor releases.
This commit is contained in:
Lars Karlitski 2020-02-28 11:15:36 +01:00 committed by Tom Gundersen
parent c5b31ff2ac
commit a578a2b7e7
3 changed files with 28 additions and 20 deletions

2
.gitignore vendored
View file

@ -10,8 +10,6 @@ __pycache__
/test/.vagrant
/runners/org.osbuild.host
/.vscode
/.idea
/.gdb_history