]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/boot/efi/boot.c
boot: use BUILD_ID if VERSION_ID is not present 531/head
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 9 Jul 2015 11:04:58 +0000 (13:04 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 9 Jul 2015 11:07:27 +0000 (13:07 +0200)
commit59658d1958a7990722240e23c25163e98aa013c8
tree5fbef775e62b1d2bfc3ee64352b2985d1a5f8930
parentd8c64b7f90b053d7bdf8d83133d9a4cc5be788dd
boot: use BUILD_ID if VERSION_ID is not present

According to os-release(5), VERSION_ID is not mandatory and BUILD_ID only
needs to be unique underneath VERSION_ID. Therefore, assuming a missing
VERSION_ID field means 'empty', we can rely on BUILD_ID to be unique.

Use BUILD_ID if VERSION_ID is not present. This way, rolling-release
distros can still provide a proper os-release entry without crafting
random VERSION_ID strings.

This fixes #186.
src/boot/efi/boot.c