test: customize /etc/os-release instead of /usr/lib/os-release
authorLuca Boccassi <luca.boccassi@gmail.com>
Fri, 18 Oct 2024 14:02:03 +0000 (15:02 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 Nov 2024 19:48:10 +0000 (19:48 +0000)
commit602e12f34003a90b5dbaee074d12abed0142d8c1
treedf1c925385b7da076d7a6cbf0342b1d905cff0b2
parent452cfd91fe07792775f4eccad813e148f96d4a86
test: customize /etc/os-release instead of /usr/lib/os-release

As per spec image builders can create a local /etc/os-release
with per-image IDs, so modify that one instead of the original
one in /usr/lib. For example we do this when we build debian
unstable images in mkosi.

(cherry picked from commit 2f6fe4e1131d39fcafa9e00a7902919efb5361e1)
test/units/TEST-82-SOFTREBOOT.sh