rpm-ostree/tests/compose-tests
Jonathan Lebon e94f8c9b5f compose: Fix mutate-os-release handling
I noticed that the latest Fedora Atomic Host 28 and Silverblue did not
have an `OSTREE_VERSION` line in `/etc/os-release` even though both
specified `mutate-os-release` in their manifests. This turned out to be
due to the fact that `/usr/lib/os-release` is now a symlink to a
variant-specific file (e.g. `os-release-atomichost`), so we would
fallback to mutating `/usr/lib/os.release.d/os-release-fedora` instead.

Fix this by just taking the nuclear option of running `realpath` in the
rootfs directly. This is more maintainable than trying to keep up with
changes in variants/naming/etc. There's related discussions to this in
the original [PR](https://github.com/projectatomic/rpm-ostree/pull/410)
which introduced the feature re. resolving symlinks within the rootfs.

Closes: #1481
Approved by: jlebon
2018-08-06 01:32:49 +00:00
..
libbasic-test.sh Add a treefile option to stop creating /etc/machine-id 2018-06-25 16:19:00 +00:00
libcomposetest.sh tests/compose: Add some time logging 2018-08-01 18:05:09 +00:00
run-test.sh compose-tests: Rename dir based on failure 2018-08-06 00:33:56 +00:00
test-basic-unified.sh compose: Do relabel before downloading in --ex-unified-core 2017-11-20 15:35:21 +00:00
test-basic.sh postprocess: Error if units with machineid-compat: false 2018-08-06 00:33:56 +00:00
test-boot-location-new.sh tests/compose: f is valid in a hex checksum 2018-02-13 17:26:54 +00:00
test-compose2jigdo.sh rust: Add support for inline rojig spec files 2018-08-03 16:54:47 +00:00
test-install-langs.sh postprocess: Unlink our treecompose-post out of the final /bin 2017-08-31 03:06:11 +00:00
test-installroot.sh bin/compose: Expose phases as [install, postprocess, commit] cmds 2017-10-25 17:43:09 +00:00
test-misc-tweaks.sh postprocess: Error if units with machineid-compat: false 2018-08-06 00:33:56 +00:00
test-mutate-os-release.sh compose: Fix mutate-os-release handling 2018-08-06 01:32:49 +00:00
test-rojig-e2e.sh tests/compose: Add some time logging 2018-08-01 18:05:09 +00:00
test-write-commitid.sh tests/compose: Add a test for --write-commitid-to 2017-12-20 15:39:47 +00:00