]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: also edit /etc/os-release if it's not a symlink when patching /usr/lib/os-relea...
authorLuca Boccassi <bluca@debian.org>
Tue, 19 Aug 2025 11:32:00 +0000 (12:32 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Aug 2025 11:32:00 +0000 (12:32 +0100)
commitb1cd38e893c5a0d353e2112acfc701ed29449c5e
tree7cec4609a8bff6c64651c7a98a4930f29e722767
parent265386ba35463bf38f309cce7ef0dc78769eb2b3
test: also edit /etc/os-release if it's not a symlink when patching /usr/lib/os-release (#38628)

mkosi patches up /etc/os-release to add local IDs and fixup certain
issues, so when tests patch /usr/lib/ on the fly, copy to the version in
/etc/ too to avoid test failures when querying

6370s 10/98 systemd:integration-tests / TEST-07-PID1 FAIL 31.03s exit
status 1
6370s 25/98 systemd:integration-tests / TEST-29-PORTABLE FAIL 12.76s
exit status 1
6370s 33/98 systemd:integration-tests / TEST-43-PRIVATEUSER-UNPRIV FAIL
6.57s exit status 1
6370s 37/98 systemd:integration-tests / TEST-50-DISSECT FAIL 16.97s exit
status 1

This is particularly an issue when running these tests on debian unstable,
where mkosi has to fixup os-release to make it valid and avoid further
breakages:

https://github.com/systemd/mkosi/blob/main/mkosi/distributions/debian.py#L234
mkosi/mkosi.images/minimal-0/mkosi.postinst
mkosi/mkosi.images/minimal-1/mkosi.postinst
test/units/TEST-50-DISSECT.sysext.sh